Table of Contents

Class PopupListPropertyDrawer<T>

Namespace
Gamelogic.Extensions.Editor
Assembly
Gamelogic.Extensions.Editor.dll

A base class for creating custom popup list drawers in the Unity Editor.

[Version(4, 3, 0)]
public abstract class PopupListPropertyDrawer<T> : PropertyDrawer

Type Parameters

T

The type of the values in the popup list.

Inheritance
GUIDrawer
PopupListPropertyDrawer<T>
Derived
Inherited Members
PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
PropertyDrawer.attribute
PropertyDrawer.fieldInfo
Extension Methods

Fields

values

The cached list of values to display in the popup.

Properties

Attribute

Gets the PopupListAttribute associated with the property.

Methods

DrawField(Rect, SerializedProperty, GUIContent)

Draws the popup field in the editor.

GetContent(T)

Gets the UnityEngine.GUIContent for a given value in the popup list.

GetValue(SerializedProperty)

Gets the current value of the property from the serialized property.

GetValuesByOtherMethod()

Returns the values to display in the popup list using a custom retrieval method.

OnGUI(Rect, SerializedProperty, GUIContent)

Renders the property in the Unity Editor with a popup list if the values are available.

SetPropertyValue(SerializedProperty, T)

Sets the value of the serialized property based the given value.