Author Topic: How to set Anchors at runtime?  (Read 3101 times)

lofl

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
How to set Anchors at runtime?
« on: January 16, 2014, 09:42:03 AM »
In inspector, Anchors setting is to input Type, Target, Left, Right, Bottom, Top and offset.

I want to set it at runtime.

Is there any samples?

Thank you!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to set Anchors at runtime?
« Reply #1 on: January 16, 2014, 11:46:13 PM »
UIWidget.SetAnchor