CustomPropertyDrawer Inherits from Attribute

Tells a custom PropertyDrawer which run-time Serializable class or PropertyAttribute it's a drawer for.

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

When you make a custom PropertyDrawer, you need put this attribute on the drawer class. If the drawer is for a Serializable class, then pass the type of the class to the CustomPropertyDrawer attribute. If the drawer is for a PropertyAttribute, then pass the type of the PropertyAttribute to the CustomPropertyDrawer attribute.

See Also: PropertyDrawer class.

Constructors
CustomPropertyDrawer