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 - toto007

Pages: [1]
NGUI 3 Documentation / Re: UIRect
« on: May 16, 2014, 03:55:50 AM »
I'm trying to understand what it means to activate the voice Execute: "onEnable."

I imagine that the anchoring is done only when the widget is enabled. So I try to manually move the object on the scene after it has been activated but remains fixed and does not move.


Don't use Instantiate. Use NGUITools.AddChild.

OnEnable still does it in Update, but only once, so if you change the position immediately after instantiation, then you are doing it before it runs.

SetAnchor(null) will indeed clear it.

Pages: [1]