- Home /
Question by
xfrog · Dec 12, 2011 at 02:44 PM ·
guisizefullscreen
The texture fits the screen size but not the display of the score.
When I switch to full screen, the texture fits perfectly but not the display of the score. Can anyone help me please?
var mySkin : GUISkin;
public var myStyle : GUIStyle;
private var screenHeight : float; private var screenWidth : float; private var curSkin : GUISkin;
function Start(){
screenWidth = Screen.width;
screenHeight = Screen.height;
}
// Score function OnGUI () { GUI.skin = curSkin; GUI.Box (Rect (screenWidth* 0.2/10, screenHeight/24, (1.5/10)*screenWidth, (0.7/5.0)*screenHeight), ScoreSingleton.score.ToString("0000"), myStyle); }
Comment
Your answer
Follow this Question
Related Questions
How do I keep GUI Buttons one size? 1 Answer
How to change thickness of ScrollBar of GUILayout ScrollView? 0 Answers
Get GUI size 1 Answer
GUI Resize Problem 1 Answer