Class TMPTextSwitcherDrawer
Custom property drawer for TMPTextSwitcherBehaviour
[CustomPropertyDrawer(typeof(TMPTextSwitcherBehaviour))]
public class TMPTextSwitcherDrawer : PropertyDrawer
Inheritance
Methods
GetPropertyHeight(SerializedProperty, GUIContent)
Specific how tell the GUI for TMPTextSwitcherBehaviour is in pixels.
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
| Name | Type | Description |
|---|---|---|
property | SerializedProperty | The SerializedProperty to make the custom GUI for.The label of this property. |
label | GUIContent | The SerializedProperty to make the custom GUI for.The label of this property. |
Returns
float — The height in pixels.
OnGUI(Rect, SerializedProperty, GUIContent)
Draw IMGUI based GUI for TMPTextSwitcherBehaviour
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
| Name | Type | Description |
|---|---|---|
position | Rect | Rectangle on the screen to use for the property GUI.The SerializedProperty to make the custom GUI for.The label of this property. |
property | SerializedProperty | Rectangle on the screen to use for the property GUI.The SerializedProperty to make the custom GUI for.The label of this property. |
label | GUIContent | Rectangle on the screen to use for the property GUI.The SerializedProperty to make the custom GUI for.The label of this property. |