DecoratedPropertyDrawer

Class in ChivalrousGames.Common.Inspector / Inherits from PropertyDrawer

Description

Handles drawing of a property decorated by a DecoratedPropertyAttribute.

Methods

OnGUI
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label);
Parameters
position Rect Rectangle on the screen to use for the property GUI
property SerializedProperty The SerializedProperty to make the custom GUI for
label GUIContent The label of this property
Description

Simple override of the OnGUI method of class PropertyDrawer. Unity calls this method itself, users should not have to call this themselves.

GetPropertyHeight
public override float GetPropertyHeight(SerializedProperty property, GUIContent label);
Parameters
property SerializedProperty The SerializedProperty to make the custom GUI for
label GUIContent The label of this property
Return
float The height in pixels
Description

Simple override of the OnGUI method of class PropertyDrawer. Unity calls this method itself, users should not have to call this themselves.