编辑器 默认OnInspectorGUI
·
编辑器默认的InspectorGUI 面板绘制
OnInspectorGUI
编辑器默认的InspectorGUI 面板绘制, (来源 cinemachine BaseEditor),记录下
public override void OnInspectorGUI()
{
EditorGUI.BeginChangeCheck();
DrawPropertiesExcluding(serializedObject, mExcluded.ToArray());
if (EditorGUI.EndChangeCheck())
serializedObject.ApplyModifiedProperties();
}
mExcluded 为排除不显示的字段名
更多推荐



所有评论(0)