HI I have searched a found a few different posts regarding tweening a menu/Widget with anchors but I am still not 100% sure what the best way is to achieve this. SIf anyone could advised me on my setup that would be great!
I have a UIRoot with UIPanel and nested within it multiple UIWIdgets for each menu. Each menu contains multiple sprites and buttons that need to be anchored in different places, some top left, top right etc... I am anchoring these based upon the UIRoot.
I want to be able to tween the Menus in the the right of the screen which I am currently doing by tweening the localPosition of the whole Menu Widget. The problem is that all the anchored elements do not twee.
How can I tween in the Menu with its anchored buttons. Can i set the anchors, then disable them whist tweening and then re-enable although that would not be necessary.
Or do I need to structure it differently?
I was thinking something like being able to set the anchor on Awake and then whist "animating" have them disabled. TweenFrom... it will always end up in its anchored position.
THe only other way is to individually tween all the child objects of the anchors....
Thanks.