Quantcast
Channel: Answers for "GUI adapting to screen resolution?"
Browsing all 6 articles
Browse latest View live

Answer by robert_mathew

GUI.Button(new Rect(Screen.width * (1f/6.55f),Screen.height * (0.1f/6.3f),Screen.width * (4.8f/6.55f), Screen.height * (0.85f/6.3f)),"Click"); //c# GUI.Button(Rect(Screen.width *...

View Article



Answer by DragonshiDev

test to use Screen.widht * (what percent of the screen you want in decimals) or Screen.height * (what percent of the screen you want in decimals)

View Article

Answer by DragonshiDev

I would suggest if you would like to have a picture all over the screen use, (if you use a GUI.Box) GUI.Box(Rect(0,0,Screen.width, Screen.height), ""); and to change size of it use some math like...

View Article

Answer by robert_mathew

GUI.Button(new Rect(Screen.width * (1f/6.55f),Screen.height * (0.1f/6.3f),Screen.width * (4.8f/6.55f), Screen.height * (0.85f/6.3f)),"Click"); //c# GUI.Button(Rect(Screen.width *...

View Article

Answer by DragonshiDev

test to use Screen.widht * (what percent of the screen you want in decimals) or Screen.height * (what percent of the screen you want in decimals)

View Article


Answer by DragonshiDev

I would suggest if you would like to have a picture all over the screen use, (if you use a GUI.Box) GUI.Box(Rect(0,0,Screen.width, Screen.height), ""); and to change size of it use some math like...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images