雜七雜八,程式碼、Unity、還有遊戲
public GameObject MyObject; MyObject.SetActive(false); MyComponent _Component = MyObject.GetComponentInChildren(); //會找不到哦 MyComponent _ComponentSec = MyObject.GetComponentInChildren(true); //找到了