Hello, i’m having a small problem on trying to hide the pop up menu panel, that i have now figured out how to toggle active after the menu button is pressed. I don’t want the pop up menu to be visible when the game starts but only when the menu button is pressed.
public class PopUpMenu : MonoBehaviour {
void Start ( GameObject panel)
{
// im having trouble here//
GameObject panel.SetActive = null;
}
public void PopUp (GameObject panel)
{
panel.SetActive (!panel.activeSelf);
}
}
Thank You,