Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: laurentl on April 11, 2013, 02:05:33 AM
-
stretch offset uses relative size in fraction of stretched size.
I want to stretch between two side buttons which are constant in pixel size so that relative size business doesn't work.
How do I do that ?
(it's like stretching between two anchors)
-
Write a custom script.
-
Aren you smartass ;D
I want details.
-
No, really :P
UIStretch won't work for what you are trying to do. You need to write a custom script that will calculate the distance between A and B, then position the object in the middle and set the scale to be that value (assuming central pivot).