How to disable/enable UI panel?

Does any know any way to disable and enable an UI panel? I tried to do that by simply using SetActive(true/false) (with the panel as a game object) on Start() but the panel didn’t disappear. I’m developing in VR platform.

You can attach the Canvas Group component in combination with disabling/enabling gameobjects in order to achieve panel switching. Before the panels get opened/closed you can use Animator Controller to animate it.

There is an asset called Woo Panels. It is a professional panel manager. It does all of those things and even more! Check it out! Here is the forum thread.