how to show ui unity code example Example: to hide or show a canvas in unity Click to copyCanvasA.gameObject.SetActive(false); CanvasB.gameObject.SetActive(true);