- Home /
Question by
gringofx · May 05, 2012 at 03:45 PM ·
androidgameobjectscreen
how to create a script with this
i try to keep this layout uniform across screen sizes ANDROID what is missing in this script. It is does not work !
function OnGUI () {
var x = AspectUtility.xOffset;
var y = AspectUtility.yOffset;
GUI.Label(Rect(x + 50, y + 50, 100, 30), "Hello");
GUI.Label(Rect(x + 75, y + 75, 100, 30), "there");
}
Comment
What's AspectUtility? Is this something you've created. It's not a Unity class as far as I know.
i want to make my GUITexture keep to same aspectratio the same for all android screen devices. How can i do that ?
Answering people who leave you comments looks like a pretty decent start.
Your answer
Follow this Question
Related Questions
How to Get Gameobject position on screen resolution that not passed the resolution to set 0 Answers
Change position of GameObject between unity3d and eclipse 0 Answers
how can I display a variable as a GUIText 5 Answers
Help touch button 1 Answer
Collision On Specific Object= Destroy not working. 2 Answers