Fit GUIText in every resolution

Ok, so this may be a very duplicated question, but i havent found an answer.
Basically what i want is a way to make my GUIText stay, regardless of what.
So if the guitext is at the bottom center and i change the resolution, the guitext is still at the bottom center.

I know i have to use Screen.width and height but i just can’t figure it out. Ive been working with it all day and my brain just cant think straight.
Hope anyone can give me a simple solution to my problem. :slight_smile:

Watch my answer to your pregoing question answers.unity3d.com/questions/642044/android-screen-size-script-not-working.html

You can make a GUI.Box without texture… And implement this code:

var guiSkinForBox : GUISkin;
    
function OnGUI()
{
    GUI.skin = guiSkinForBox;
    GUI.Box(Rect(0, 0, Screen.width, Screen.height), "Text here...");
}

Good luck!

Ok so you need a “responsive” layout, I have made an API to provide me that, and I will show a little functions to show to you how to do that.

 public bool createButton(float left, float top, float width, float height, String value) 
        {
            return GUI.Button(new Rect((screenWidth-screenWidth)+left, (screenHeight-screenHeight)+top, 
                                                                                width, height), value);
        }

ScreenWidth and ScreenHeight:

//Get the screen width and height
    public int getScreenWidth       { get; set; }
    public int getScreenHeight      { get; set; }

    private int screenWidth = Screen.width;
    private int screenHeight = Screen.height;

What the code does? The function that I’ve created a function to create a Button, the function takes the size of the screen, and make a button with: the size of the screen - the size of the screen(it makes the screen positioning 0) more the position that you have inserted on the function.