标签:
使用
renwu = mRoot.transform.Find("Container/Grid/renwu").gameObject;
UIToggle markSprite = renwu.GetComponentInChildren<UIToggle>();//获取UIToggle markSprite.value = true;
//UIToggle markSprite = renwu.GetComponentInChildren<UIToggle>();//获取UIToggle
//markSprite.value = true;
UIToggledObjects toggleObjects = renwu.GetComponentInChildren<UIToggledObjects>(); // 获取 UIToggledObjects
toggleObjects.gameObject.SetActive(true);
【酷熊科技】工作积累 ----------- Unity3D
标签:
原文地址:http://www.cnblogs.com/dudu580231/p/5753578.html