Unity API通读 CustomEditor

告诉一个编辑器类是哪种运行类型的编辑器
在为组件制作自定义编辑器时 你需要把这个属性放到编辑器类上
UnityEditor类

·属性
isFallback
如果为true 则仅当所有的非回退编辑器不匹配时才匹配该编辑器 默认为false
·构造函数
CustomEditor
定义自定义编辑器类可以编辑的对象类型

官方文档 version2018.3
https://docs.unity3d.com/ScriptReference/CustomEditor.html

猜你喜欢

转载自blog.csdn.net/qql7267/article/details/89328308