Primitive and Placeholder Objects 原始的基础物体 Unity can work with 3D models of any shape that can be created with modelling software. However, there are also a number of primitive object types that can be created directly within Unity, namely the Cube, S
为什么需要跟你的组件添加公共方法呢? 留一条后路嘛,万一你那天想起要给全部的组件添加一个方法. 此时我只能告诉你慢慢修改吧累死你 子组件:A ,父组件:B继承方式: A -> B –> MonoBehaviour. 此时你在B中写入方法(简单吧) using UnityEngine; using System.Collections; namespace MyNamespace { public class MyCompoment : MonoBehaviour { //公共方法 } }