- Home /
Text fields where text will scale along with resolution.
We would like to create an input text field that scales along with the scene's content. I thought of using TextMesh like all the text we have in our game but I did not find any doc about making it a editable text field. And GUI.TextField will not scale like we want.
Is it there a way to achieve that?
Answer by Eric5h5 · Jan 20, 2011 at 07:30 PM
GUI.Textfield will scale if you use GUI.matrix. The docs on that aren't exactly overflowing with detail, but there are some examples on the forums (like this, 10th post there).
Note that scaling a font more that about 1.5 times its original resolution will start to look bad. (I don't suppose you could make an invisible TextField and overdraw it with the Text$$anonymous$$esh?)
It works like a charm with GUI.matrix. Thank you very much.
Your answer
Follow this Question
Related Questions
Backspace in limited length textfield causes ArgumentOutOfRangeException 1 Answer
GUILayout Textfield not editable just static 1 Answer
I am having issues with my textmesh shader 0 Answers
Text.Field erratically updating 0 Answers
Unity Shutdown 1 Answer