Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - imansueto

Pages: [1]
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:

  1. 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);
  2.  

Pages: [1]