- Home /
Zoom at Text
I have some Textelements on my android game, i want to zoom at them when double tabed. I tried scaling the Camera viewangle, but it only makes non_gui items bigger.
Comment
Best Answer
Answer by Paul-Sinnett · May 18, 2015 at 04:42 PM
If you add a parent panel component, you can modify the scale of that, and all of the children should scale as well.
I tried this`GetComponent().sizeDelta=new Vector2(GetComponent().sizeDelta.x-300,GetComponent().sizeDelta.y-300);` But it only moves the panel, how can scale it right?
try:
GetComponent<RectTransform>().localScale = new Vector3(2f, 2f, 2f);
That may cause children to move as well unless they are centered on their parent.
Your answer
Follow this Question
Related Questions
how to fix blurry text on android 4 Answers
Andoid enter text without gui 1 Answer
Blurry Text using Textmesh Pro on android device 2 Answers