1.在Editor文件夹下面创建C#脚本
2.引入UnityEditor命名空间并继承自Editor
3.在类名上方添加[CustomEditor(typeof(要修改的组件名称))]
4.重写父类中的OnInspectorGUI()方法
5.在该方法中写想要显示组件的参数信息(此处用Transform组件为例
相关文章:
1.在Editor文件夹下面创建C#脚本
2.引入UnityEditor命名空间并继承自Editor
3.在类名上方添加[CustomEditor(typeof(要修改的组件名称))]
4.重写父类中的OnInspectorGUI()方法
5.在该方法中写想要显示组件的参数信息(此处用Transform组件为例
相关文章: