Hi,
I am new to NGUI and spent some time learning it today and I can't figure out how to control the pivot of a root transform of a hierarchy of UI objects.
Basically I am trying to make a window with several widgets on it that I can rotate around its left edge. But I seem to have no control over the location of the widget parents. Somehow they take on some kind of average position of the buttons in it.
I tried all kinds of combinations of with/without UIRoot and UIAnchor scripts.
Basically I have a hierarchy like this:
UI Root
** desired Pivot 1 (tried with and without this Transform)
** Panel 1
** Sprite
** Button
** etc.
** desired Pivot 2
** Panel 2
** Sprite
** Buttons, etc.
I tried to put the buttons under the sprite and use the sprite pivot control, but whatever I do, I have no control over the pivot of the Panels or the 'desired Pivot' and it appears to change depending on the Buttons in the Panel. I don't understand how and why the child transform settings get communicated up the hierarchy.
Any thoughts or advice?
Thanks,
Matthias