how to hide canvas in unity 2D code example
Example: to hide or show a canvas in unity
CanvasA.gameObject.SetActive(false); CanvasB.gameObject.SetActive(true);
CanvasA.gameObject.SetActive(false); CanvasB.gameObject.SetActive(true);