Table of Contents

Class StringPopupPropertyDrawer

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

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

[CustomPropertyDrawer(typeof(StringPopupAttribute))]
[CustomPropertyDrawer(typeof(TagPopupAttribute))]
[CustomPropertyDrawer(typeof(LayerPopupAttribute))]
[Version(4, 3, 0)]
public class StringPopupPropertyDrawer : PopupListPropertyDrawer<string>
Inheritance
GUIDrawer
StringPopupPropertyDrawer
Inherited Members
PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
PropertyDrawer.attribute
PropertyDrawer.fieldInfo
Extension Methods

Methods

GetContent(string)

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

GetValue(SerializedProperty)

Gets the current string value of the serialized property.

SetPropertyValue(SerializedProperty, string)

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