Quantcast
Channel: Answers for "How to center this gui?"
Browsing all 4 articles
Browse latest View live

Answer by Meltdown

Use the new UI in Unity 4.6. Don't waste your time with the old GUI system (it's horrible). Check the new UI tutorials [here][1] [1]: http://unity3d.com/learn/tutorials/modules/beginner/ui

View Article



Answer by zaid87

A simple calculation would easily do the trick (not sure if there's a simpler way though): float positionX = Screen.width/2 - buttonWidth/2 if (GUI.Button(new rect (positionX, 70, buttonWidth, 60),...

View Article

Answer by Meltdown

Use the new UI in Unity 4.6. Don't waste your time with the old GUI system (it's horrible). Check the new UI tutorials [here][1] [1]: http://unity3d.com/learn/tutorials/modules/beginner/ui

View Article

Answer by zaid87

A simple calculation would easily do the trick (not sure if there's a simpler way though): float positionX = Screen.width/2 - buttonWidth/2 if (GUI.Button(new rect (positionX, 70, buttonWidth, 60),...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images