Hello, i want to make some c# script that causes some GUI to appear, i already have the script in place that will recognise the touch, i just need the couple of lines of code that can make a GUI pop up to appear.
Hey,
How I do it is by using booleans.
public class Display : MonoBehaviour
{
public bool guiUP;//false by default
void OnGUI()
{
if (GUI.Button(new Rect(0,0,100,50),"Toggle GUI"))
{
guiUP = true;
//OR guiUP = !guiUP for a real toggle//
}
if(guiUP)
{
///Display your stuff
}
}
}