Documentation

Page contents

Updated

Generate PDF from page.

Enum pop up window

Description

Allows to search fields in a enumeration from inspector with a popup.

Reference

  • E/A – Sorting Method. Enumeration o Alphabetically.
  • V – Shows the index of the enumeration element.

Use

The method “BuildEnumPopUpWindow()” allows to build a popup with a search field, this field will filter the elemements of a enumeration and assigns the selected element to the property.

In this example you can see the use.

public override void OnInspectorGUI()
{
    CGFEditorUtilitiesClass.BuildEnumListPopUpWindow("Label Name", "Description", rectPosition, serializedProperty, listNames);
}