how to set UI object to not active unity code example Example: setactive unity gameObject.SetActive(true); gameObject.SetActive(false);