c#中
通过this访问脚本组件
this.test()==test(),调用test方法 省略了
this.gameObject 通过组件访问到该节点
默认直接用gameObject访问,
gameObject.name 访问节点名称
c#中
通过this访问脚本组件
this.test()==test(),调用test方法 省略了
this.gameObject 通过组件访问到该节点
默认直接用gameObject访问,
gameObject.name 访问节点名称
GameObject.CreatePrimitive(PrimitiveType.plane);
游戏物体的查找和获取
this.geiasGo;
this.gameobject;
GameObject.CreatePrimitive(PriminitiveType.Plane);