Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Kafar on October 26, 2015, 07:22:47 AM

Title: Vertical toolbar with buttons spaced
Post by: Kafar on October 26, 2015, 07:22:47 AM
Hi,

I'm working on a vertical toolbar and I need to space the buttons inside to fit the toolbar length.
Can how to do this? With anchors? Can how to set?
Thanks

-Kafar
Title: Re: Vertical toolbar with buttons spaced
Post by: ArenMook on October 27, 2015, 12:50:19 AM
Use "Custom" anchor type with floating point values. For example for left and right anchors, 0 means left side, 1 means right side, 0.5 means center, 0.25 means 25% from the left, etc.
Title: Re: Vertical toolbar with buttons spaced
Post by: Kafar on October 27, 2015, 07:48:21 AM
Do you means this?

Title: Re: Vertical toolbar with buttons spaced
Post by: Kafar on October 29, 2015, 05:53:04 AM
Use "Custom" anchor type with floating point values. For example for left and right anchors, 0 means left side, 1 means right side, 0.5 means center, 0.25 means 25% from the left, etc.

Ok, I set that but when I play Unity the anchor return back to set "Unified".
Why?
Title: Re: Vertical toolbar with buttons spaced
Post by: ArenMook on October 29, 2015, 07:34:18 AM
No, not advanced. You see the "Right", "Left", etc? Change them to "Custom".
Title: Re: Vertical toolbar with buttons spaced
Post by: Kafar on October 29, 2015, 10:53:39 AM
No, not advanced. You see the "Right", "Left", etc? Change them to "Custom".

OK, but please read my previous message, about the back state return.

Thanks
Title: Re: Vertical toolbar with buttons spaced
Post by: ArenMook on October 31, 2015, 01:57:55 AM
State return? If you mean the change to Unified, that's normal. Unified = all 4 sides are bound to the same object.