继承自 MonoBehaviour 的类的一些扩展 一方面继承自MonoBehaviour的类都会默认被添加到 Component->Scripts 节点下。 另一方面MonoBehaviour类都可以添加到GameObject作为Component,在Inspector界面可以显示该类的一些信息。 所有继承自UnityEngine.Object的类,如GameObject,Component,MonoBehaviour,Texture2D,AnimationClip;所有基本类型,如int,string,float,bool;一些内建类型,如Vector2,Vector3,Quaternion,Color,Rect,Layermask;序列化类型的Array,序列化类型的List;枚举Enum。默认情况下这些类型的public变量是可以在Inspector界面显示的,同时编辑器对其进行序列化。 一些涉及到变量显示和序列化的属性 [HideInInspector] 变量依旧可以被序列化,但是在Inspector界面上不可见 [NonSerialized]...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Rect
Contact Rect, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack