1
NGUI 3 Documentation / Re: UI2DSprite
« on: March 27, 2014, 04:14:57 PM »
Hello, would it be possible to have an option to use the pivot defined in Unity's Sprite Editor for UI2DSprites? In order to make it work I had to modify the offset used in drawingDimensions to this:
- Vector2 offset = new Vector2((sprite2D.bounds.extents.x - sprite2D.bounds.center.x) / sprite2D.bounds.size.x, (sprite2D.bounds.extents.y - sprite2D.bounds.center.y) / sprite2D.bounds.size.y);
