Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: basil_11 on January 04, 2013, 09:37:55 AM
-
hi,
can anyone help me in my problem with rescaling texture :)
I want to rescale the texture by Adjusting the height without affecting the "other height on top" -> meaning:
Original scale:
A
+++++++ <-- "other height" or A
+ +
+ +
+++++++ <-- i want to reScale my square texture/Image but only the "B" is stretching downwards
B
final output is:
A
+++++++ <-- did not move
+ +
+ +
+ + <-- point C
+ +
+ +
+++++++ <-- this one moved from "point C" as shown above to the current position
B
-
Hi,
Set the Pivot point of your sprite to Top, then move your sprite where you want. Resize the sprite by modifiying the Y value of the Scale of its transform.
Regards.
-
Hi Cripple,
Thanks for the Answer, I appreciate it
Can you give me some script sample for it if you have, thanks! :)
I am just newbie in NGUI UNITY3D
Thanks a lot master :) Regards