- Home /
load level with gui button nested in a toggled window!!!
hello all,
i have this piece of c# code to toggle on and off a Gui Window. It works just the way i want it to, However i dont know how to make the button in the Gui Window called "field" to load another level? Can you please help me with this??
Thank you
using UnityEngine; using System.Collections;
public class levelreveal : MonoBehaviour { public bool doWindow0 = true; void DoWindow0(int windowID) { GUI.Button(new Rect(10, 30, 80, 20), "Field"); } void OnGUI() { doWindow0 = GUI.Toggle(new Rect(10, 40, 150, 20), doWindow0, "Places"); if (doWindow0) GUI.Window(0, new Rect(30, 60, 200, 60), DoWindow0, "Places1");
}
}
Your answer
Follow this Question
Related Questions
My button won't load a scene 1 Answer
Change to scene based on current scene 1 Answer
Load, Save and Options Gui Help 1 Answer
How to get Rect from scene Button ? 1 Answer
making and integrating Visual novel element in 3d game? 2 Answers