- Home /
Screen.width and Screen.height does not cover screen. Why?
Why does it not position itself in the top left corner and cover the entire screen?
Origin should be top left from my point of view, and Screen.width, Screen.height should cover the screen. What have I done insanely wrong?
var Background : Texture2D is loaded with the image of that planet. MainMenuSkin.box has had it's standard Unity textures deleted because I do not want to use them. It has worked perfectly to do that in the past.
Answer by Mike 3 · Apr 18, 2011 at 01:16 PM
Use GUI.DrawTexture instead of GUI.Box
I've done so, but... It still does not cover the entire screen. It covers more of it, yes. But not the entire.
How're you using it? GUI.DrawTexture(new Rect(0,0,Screen.width,Screen.height), tex); covers my entire screen, no matter which platform
Answer by Skjalg · Apr 18, 2011 at 09:57 AM
The Box itself is most likely covering the entire screen, but the positioning of the GUIContent (in your example, this image) in your GUI.Box depends on what the settings are in your GuiSkin.
Answer by Unamine · Apr 18, 2011 at 01:27 PM
Look up in the Free Aspect and place the last option, which is what you choose for your game, but when you build an executable will run as follows: Open the executable, select the default resolution and window mode when the game open, press ALT + ENTER ...
Hope this helps
Your answer
Follow this Question
Related Questions
My OnGUI() Won't show the Button elements :( 0 Answers
Draw crosshair INSTEAD of cursor. 1 Answer
Capture screenshot to texture, memory issue 1 Answer
Why is text so boring in Unity?! 1 Answer
Non-uniform scale textures in GUI 1 Answer