playMaker

Author Topic: Setting the anchor property on an NGUI Widget?  (Read 4900 times)

artician

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 298
    • View Profile
Setting the anchor property on an NGUI Widget?
« on: August 23, 2014, 05:16:13 PM »
I'm trying to use Set Property to set the object one of my NGUI widgets is set to, however I can't tell what the Property actually is.  Nothing stands out as "Anchor Target" or "Anchor" or similar.  Can anyone answer this for me?

Thanks.

artician

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 298
    • View Profile
Re: Setting the anchor property on an NGUI Widget?
« Reply #1 on: August 23, 2014, 06:52:52 PM »
NGUI Author recommends I write something custom.  This would be the first time I haven't been able to solve something using Set Property.  I figure I must be missing something, but I essentially need to set the UIRect.rightAnchor, UIRect.leftAnchor, etc. 

The Set Property options in these UI objects is insanely deep and I can't make heads or tails of it.

tankun

  • Playmaker Newbie
  • *
  • Posts: 26
    • View Profile
Re: Setting the anchor property on an NGUI Widget?
« Reply #2 on: September 03, 2014, 01:39:28 AM »
Hi,

I'm trying to achieve the exact same thing. Have you found the Set Property value for Anchor values? I'm looking for the Bottom Override (the value you set next to the bottom tab under the Anchor widget) specifically.

artician

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 298
    • View Profile
Re: Setting the anchor property on an NGUI Widget?
« Reply #3 on: September 03, 2014, 02:02:22 AM »
Unfortunately I've not discovered any solution.  :(