Class OptimizedPropertyDrawer<TIndividual>
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Core.Editor.dll
Syntax
public abstract class OptimizedPropertyDrawer<TIndividual> : PropertyDrawer where TIndividual : IndividualPropertyDrawer, new()
Type Parameters
Name | Description |
---|---|
TIndividual |
Methods
GetPropertyHeight(SerializedProperty, GUIContent)
Override this method to specify how tall the GUI for this field is in pixels.
Declaration
public override sealed float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
Serialized |
property | The SerializedProperty to make the custom GUI for. |
GUIContent | label | The label of this property. |
Returns
Type | Description |
---|---|
float | The height in pixels. |
Overrides
OnGUI(Rect, SerializedProperty, GUIContent)
Override this method to make your own IMGUI based GUI for the property.
Declaration
public override sealed void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
Rect | position | Rectangle on the screen to use for the property GUI. |
Serialized |
property | The SerializedProperty to make the custom GUI for. |
GUIContent | label | The label of this property. |