activate deactivate object unity code example Example: how to deactivate an object unity Object.SetActive(true / false);