unity 如何在不绑定有GetComponentsInChildren()方法代码的情况下获取子物体
因为要继承TTUIPage无法绑定
public class UIMessage : TTUIPage
unity 如何在不绑定有GetComponentsInChildren()方法代码的情况下获取子物体
因为要继承TTUIPage无法绑定
public class UIMessage : TTUIPage
TTUIPage里有个gameObject变量,直接使用gameObject.GetComponentsInChildren()就可以了,TTUIPage里还有个transform变量,也可以使用