Answer by AwesomeFaceHD
You could do it using functions. Something like this: public var currentMenu : string = ""; function Start() { currentMenu = "window1"; } function OnGUI() { if(currentMenu == "window1") Window1();...
View ArticleAnswer by AwesomeFaceHD
I'm pretty sure you should assign "script" and "choice" in the start function. Unless you already fixed it. function Start() { script = GetComponent(guiSchool2); choice = script.flag; }
View ArticleAnswer by AwesomeFaceHD
Why not just use GUI Styles to make a button just a texture? var Texture1 : GUIStyle; var Texture2 : GUIStyle; function OnGUI() { if(GUI.Button(new Rect(10, 10, 100, 100), "", Texture1)) { //Code Here...
View ArticleAnswer by AwesomeFaceHD
Click on the model in the file explorer inside Unity. Inside the editor, make sure you are on the Model tab and check the box by "Generate Colliders", then hit save. Now when put it in the scene, it...
View Article