Class ExtSlotPropertyDrawer
Custom PropertyDrawer for ExtSlot.
Inherited Members
PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
PropertyDrawer.attribute
PropertyDrawer.fieldInfo
Namespace: AppstockSDK.Editor
Assembly: Appstock.Core.Native.Data.Editor.dll
Syntax
[CustomPropertyDrawer(typeof(ExtSlot))]
public class ExtSlotPropertyDrawer : PropertyDrawer
Methods
GetPropertyHeight(SerializedProperty, GUIContent)
Specifies how tall the GUI for this field is in pixels.
Declaration
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | 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)
Uses IMGUI to draw GUI for the property.
Declaration
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
Rect | position | Rectangle on the screen to use for the property GUI. |
SerializedProperty | property | The SerializedProperty to make the custom GUI for. |
GUIContent | label | The label of this property. |