- Home /
GUIText Position under different resolution, different aspect ratio
I have been searched this for hours and seems there is no solution for this, so I try to ask here:
I have a GUITexture and a GUIText, I wrote some script to auto rescale the GUITexture to fit the screen (in center) no matter the screen aspect ratio > 0 (e.g. 16:9) or < 0 (e.g. 3:5), but seems the code not work for GUIText
if I use the correct aspect ratio AND resolution, it will look like (1) but if I tweet either the dimension of the game screen size or aspect ratio, the position will go all wrong.
Should I use transform.position to relocate it, or use Pixel inset to do so?
Your answer
![](https://koobas.hobune.stream/wayback/20220613140305im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Replacing letters with images? 1 Answer
Instantiate a 2d Pop up 1 Answer
How to display a characters "dialogue" when entering a collider? 1 Answer
GUIText and GUITexture? 3 Answers
Drawing UI text on GUI.DrawTexture , How to do it ? 1 Answer