This class implements a default property drawer, for use with ExposedMember Attributes.
You can derive custom property drawers from this class, for a given class with ExposedMembers (and set the CustomPropertyDrawer attribute for that class).
This will automatically have it display all the ExposedProperties present in the display class. Note: Unless one want to do specific customizations, none of the functions NEED to be overridden.
Public Member Functions | |
| override float | GetPropertyHeight (SerializedProperty property, GUIContent label) |
| Gets the height of the foldout section only. | |
| override void | OnGUI (Rect position, SerializedProperty property, GUIContent label) |
| Overrides the base class to always, show only the details of the property; no foldout or save options are shown. | |
Static Public Member Functions | |
| static float | ExposedMembersSection (ref ExposedObjectMembers exposedObjProperties, bool notHeightOnly, Rect position, SerializedProperty property, GUIContent label) |
| Compute the height of, and optionally draws, the foldout-section of the ExposedObjectPropertyDrawer. | |
Protected Attributes | |
| ExposedObjectMembers | exposedObjProperties |
| This ExposedObjectMembers computes and cashes the properties that will be exposes by this PropertyDrawer. | |
Inheritance diagram for DefaultExposedMemberPropertyDrawer:
Collaboration diagram for DefaultExposedMemberPropertyDrawer: