标签:erer false ble image unit 启动 显示 als com
1.
GameObject.Find("UniversalMediaPlayer1/Canvas/RawImage").GetComponent<RawImage>().enabled = true;
GameObject.Find("UniversalMediaPlayer1/Canvas/RawImage").GetComponent<RawImage>().enabled = false;
2.修改透明度,把透明度调为0
3.
gameObject.SetActive (false);
gameObject.SetActive (true);
4.
gameobject.GetComponent<MeshRenderer>().enble
5.父物体UniversalMediaPlayer1为True,子物体为false(未启动之前),启动后,是可以把子物体设置为true的。但如果父物体就是false,那么,设置为true就设置不了了。
GameObject.Find("UniversalMediaPlayer1").transform.FindChild("Canvas").gameObject.SetActive(true);
标签:erer false ble image unit 启动 显示 als com
原文地址:http://www.cnblogs.com/Study02/p/7514437.html