Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: sawada on July 31, 2014, 10:43:35 AM

Title: How do change Anchors Type in Code?
Post by: sawada on July 31, 2014, 10:43:35 AM
hi,guys.
I want to change Anchors Type.

For example.
create ngui sprite, set UISprite Anchors Type Unfield or Advanced.
play to game,i hope move ngui sprite.So set UISprite Anchors Type None.

But,I do not Understand Change  Anchors Type in Code.
How do you do that?
Title: Re: How do change Anchors Type in Code?
Post by: ArenMook on July 31, 2014, 12:17:03 PM
NGUIMath.MoveWidget, NGUIMath.ResizeWidget, NGUIMath.AdjustWidget -- all of them work even while the widget is anchored.
Title: Re: How do change Anchors Type in Code?
Post by: sawada on August 01, 2014, 05:58:46 AM
move is impossible?