📜  设置脏属性统一自定义检查器 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:09.430000             🧑  作者: Mango

代码示例1
//Make a begin and a end property around it
using unityEditor;

public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) {
  EditorGUI.BeginProperty(position, label, property);
  EditorGUILayout.PropertyField(property);
  EditorGUI.EndProperty();
}