unity disable in inspector canvas code example Example: enable canvas unity CanvasObject.SetActive(false);