- Home /
Positioning a GUI Text?
Hello!
Is there any way to position a GUI Text in the top left corner of the screen? I tried the default way with Pixel Offset of unity but it doesn't work.
Please help me.
Any reply is appriciated! :) Thanks
Answer by qewo · Jul 26, 2013 at 10:20 AM
http://docs.unity3d.com/Documentation/Components/gui-Layout.html
Have a look at the link it has information on grouping GUI elements so you only have to position them relative to the group and possibly:
http://docs.unity3d.com/Documentation/ScriptReference/GUILayout.BeginArea.html
Which tells you how to add a void area to pad out the sides of your screen. Hopefully this has been of help.
Answer by Kyieon · Jul 26, 2013 at 12:46 PM
If you edit the transform of the GUI Text the position will always be the same regardless of resolution. If you want the position of the top left it is x=0.01 y=0.99 z=0. Hope this helped.
Your answer
Follow this Question
Related Questions
Why is my GUI pushed over to the right? 0 Answers
gui creation over an object 0 Answers
Get Mouse Position GUI 3 Answers
dfGUI, autoposition? 0 Answers