- Home /
GUI positioning
Hey all, New to Unity but I've been programming about a year. What I need help with is, is it possible to create a GUI box and have all of the buttons' positions be local to the box so that 0,0 would be the corner of the box and not the corner of the screen?
Answer by rutter · Aug 20, 2014 at 10:11 PM
Sounds like you want GUI.Window.
If that's not what you're looking for, it's not terribly hard to do the math on this one. Sketch out your desired positions, and write some functions or classes that will take care of that for you.
Also consider the GUILayout as well. Can often solve a lot of calculation headaches for you.
I saw that while I started reading GUI.Window, I'll give it a read when I finish the first page. Thanks!
Your answer
Follow this Question
Related Questions
Change GUI button position in code 1 Answer
GUI Button and a gameObject's position 3 Answers
Infinite GUI Button positions. 3 Answers
Question about positioning GUI. 1 Answer
Button position 4 Answers