Activate button which is inside canvas

So I want to activate this button in code (c#). Anyone know how to do that?

GameObject.FindGameObjectWithTag("Cont").SetActive(true);

This dont work. Help please.

Thanks!!!

FindGameObjectWithTag does not return inactive objects. Try assigning the Button to a public variable or looking for it by name. Why not use a UnityEvent to enable/disable the object and minimise the coupling.

Why don’t you treat the button as a gameobject and use gameobject.SetActive ?