I turn on and off the canvas but I just:
public bool menu = true
public bool otherscene = false;
public void SceneMenu () {
menu = true
otherscene = false;
}
but it will not know how to say it or attach the canvas
I turn on and off the canvas but I just:
public bool menu = true
public bool otherscene = false;
public void SceneMenu () {
menu = true
otherscene = false;
}
but it will not know how to say it or attach the canvas
Do something like this:
GameObject.Find("YourCanvasName").GetComponent<Canvas>().enabled = false;
You also need to use:
using UnityEngine.UI;
at the start of your script.
thanks so much ![]()