Quantcast
Channel: Answers by "AwesomeFaceHD"
Browsing all 8 articles
Browse latest View live

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 Article



Answer 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 Article

Answer 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 Article

Answer 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

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 Article


Answer 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 Article

Answer 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 Article

Answer 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

Browsing all 8 articles
Browse latest View live


Latest Images