- Home /
Question by
una_x · Jan 02, 2014 at 01:04 PM ·
texture2dguitexture
How to fix it?
I use:
var mymenu : Texture2D;
GUI.DrawTexture (Rect (0, 0, Screen.width, Screen.height), mymenu);
in menu but wants use var teksture_1: GUITexture; but this texture GUI.DrawTexture These covers guiteksture and can not see it because it is under GUI.DrawTexture .
var teksture_1: GUITexture;
var mymenu : Texture2D;
function OnGUI () {
GUI.DrawTexture (Rect (0, 0, Screen.width, Screen.height), mymenu);
if (GUI.Button (Rect (660,310,90,55), "New Game")) {
Application.LoadLevel(1);
}
function Start() {
Screen.showCursor = true;
yield WaitForSeconds(2);
teksture_1.enabled = true;
yield WaitForSeconds(6);
teksture_1.enabled = false;
}
Comment