Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: TifaOng on December 24, 2013, 04:50:51 AM
-
I have a vertical draggable panel. I want to make the every centered item changes colour or becomes bigger. How to do this?
-
Math.
You know the position of the items. You know the position of the panel and its clipped area (UIPanel.finalClipRegion). The rest is math.
If you need an example UICenterOnChild does it for you. If you don't want to do math, UICenterOnChild.centeredObject gives you what it's currently centered on.
-
I know the item centered on, but I don't know how to make it becomes bigger?
What kind of math is needed?
-
TweenScale.Begin(targetObject, ...);