Table of Contents

Class IntPopupPropertyDrawer

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

A property drawer for integer popup lists, used to display a dropdown with integer options in the Unity Editor.

[CustomPropertyDrawer(typeof(IntPopupAttribute))]
[Version(4, 3, 0)]
public class IntPopupPropertyDrawer : PopupListPropertyDrawer<int>
Inheritance
GUIDrawer
IntPopupPropertyDrawer
Inherited Members
PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
PropertyDrawer.attribute
PropertyDrawer.fieldInfo
Extension Methods

Methods

GetContent(int)

Converts an integer value into a UnityEngine.GUIContent object for display in the popup list.

GetValue(SerializedProperty)

Gets the current integer value of the serialized property.

SetPropertyValue(SerializedProperty, int)

Sets the integer value of the serialized property based on the selected option in the popup list.