How do I Hide and unhide UI button in scene?

I code restartButton.SetActive(false) yet my button is still visible in scene, any thoughts?

Wow I forgot to populate my gameObject button in my GameController Script ! Duh me. Duh, Duh!

Thanks anyway if you happen to come across my thread. I got it I was not paying attention I am New to Unity…