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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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