void OpCam04() //自定义的程式Opcam04 { CamOrg.SetActive(false); Cam01.SetActive(false); Cam02.SetActive(false); Cam03.SetActive(false); Cam04.SetActive(true); Cam05.SetActive(false); }
public GameObject Cam01, Cam02, Cam03, Cam04, Cam05, CamOrg; //六个相机,camorg对应main camera void Start() { //设定camorg为启用,其他为停用状态 CamOrg.SetActive(true); Cam01.SetActive(false); Cam02.SetActive(false); Cam03.SetActive(false); Cam04.SetActive(false); // Cam05.SetActive(false); }