Author Topic: Vertical toolbar with buttons spaced  (Read 14224 times)

Kafar

  • Newbie
  • *
  • Thank You
  • -Given: 10
  • -Receive: 0
  • Posts: 27
    • View Profile
Vertical toolbar with buttons spaced
« 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
« Last Edit: October 26, 2015, 08:59:09 AM by Kafar »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Vertical toolbar with buttons spaced
« Reply #1 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.

Kafar

  • Newbie
  • *
  • Thank You
  • -Given: 10
  • -Receive: 0
  • Posts: 27
    • View Profile
Re: Vertical toolbar with buttons spaced
« Reply #2 on: October 27, 2015, 07:48:21 AM »
Do you means this?


Kafar

  • Newbie
  • *
  • Thank You
  • -Given: 10
  • -Receive: 0
  • Posts: 27
    • View Profile
Re: Vertical toolbar with buttons spaced
« Reply #3 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Vertical toolbar with buttons spaced
« Reply #4 on: October 29, 2015, 07:34:18 AM »
No, not advanced. You see the "Right", "Left", etc? Change them to "Custom".

Kafar

  • Newbie
  • *
  • Thank You
  • -Given: 10
  • -Receive: 0
  • Posts: 27
    • View Profile
Re: Vertical toolbar with buttons spaced
« Reply #5 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Vertical toolbar with buttons spaced
« Reply #6 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.