How do I change a gameobject to be active through a script?

I made a key press system to open a menu and it works but I don’t know how to set the menu object as active in the script.

YourGameObject.SetActive(true); to enable it
YourGameObject.SetActive(false); to disable it

Have a good time :slight_smile: