Property View
- Create new folder and name it
Editor. -
Inside
Editorfolder create new class,ExampleView.cspublic class ExampleView { } -
Inherit from
PropertyViewclass.public class ExampleView : PropertyView { } -
Implement abstract method
OnGUI.public class ExampleView : PropertyView { public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { // Property GUI here... } } -
Add
ViewTargetattribute and setExampleAttributeas target to this view.[ViewTarget(typeof(ExampleAttribute))] public class ExampleView : PropertyView { public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { // Property GUI here... } }