Wanzyee Studio

Helper to make UnityEditorInternal.ReorderableList more friendly. More...

Static Public Member Functions

static ReorderableList Create (SerializedProperty property, ReorderableList.ElementCallbackDelegate drawElementCallback=null, ReorderableList.ElementHeightCallbackDelegate elementHeightCallback=null)
 Create a reorderable list with enhanced features. More...
 
static void Wrap (ReorderableList list)
 Wrap the specified reorderable list with enhanced features. More...
 

Detailed Description

Helper to make UnityEditorInternal.ReorderableList more friendly.

The enhanced features below:

  1. Make the header support tooltip attributes, only valid if no custom callback.
  2. Click the header to fold or expand the list.
  3. Press "Ctrl-D" to duplicate the current element when focused, and "Delete" to remove it.

Please note, this only supports a list with ReorderableList.serializedProperty.

3

Member Function Documentation

static ReorderableList Create ( SerializedProperty  property,
ReorderableList.ElementCallbackDelegate  drawElementCallback = null,
ReorderableList.ElementHeightCallbackDelegate  elementHeightCallback = null 
)
static

Create a reorderable list with enhanced features.

Parameters
propertyProperty.
drawElementCallbackDraw element callback.
elementHeightCallbackElement height callback.
Returns
The reorderable list.
static void Wrap ( ReorderableList  list)
static

Wrap the specified reorderable list with enhanced features.

Parameters
listThe reorderable list.