Skip to main content

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​

NameTypeDescription
propertySerializedPropertyThe SerializedProperty to make the custom GUI for.The label of this property.
labelGUIContentThe 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​

NameTypeDescription
positionRectRectangle on the screen to use for the property GUI.The SerializedProperty to make the custom GUI for.The label of this property.
propertySerializedPropertyRectangle on the screen to use for the property GUI.The SerializedProperty to make the custom GUI for.The label of this property.
labelGUIContentRectangle on the screen to use for the property GUI.The SerializedProperty to make the custom GUI for.The label of this property.
  • Methods
    • GetPropertyHeight(SerializedProperty, GUIContent)
    • OnGUI(Rect, SerializedProperty, GUIContent)