Author Topic: How do change Anchors Type in Code?  (Read 2897 times)

sawada

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
How do change Anchors Type in Code?
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How do change Anchors Type in Code?
« Reply #1 on: July 31, 2014, 12:17:03 PM »
NGUIMath.MoveWidget, NGUIMath.ResizeWidget, NGUIMath.AdjustWidget -- all of them work even while the widget is anchored.

sawada

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: How do change Anchors Type in Code?
« Reply #2 on: August 01, 2014, 05:58:46 AM »
move is impossible?