Wanzyee Studio

UnityEngine.PropertyAttribute to Drag'n'Drop to reorder an array or list. More...

Inherits PropertyAttribute.

Public Member Functions

 ReorderableListAttribute ()
 Set the property order as max to ensure applying first. More...
 

Detailed Description

UnityEngine.PropertyAttribute to Drag'n'Drop to reorder an array or list.

Implemented with UnityEditorInternal.ReorderableList. Since an UnityEngine.PropertyAttribute can only be applied to the array elements. This draws elements only if existing, and leaves the original foldout label without the list header.

Support nested UnityEditor.PropertyDrawer of custom class or attribute to draw the elements. To ensure applying, this's order should be set higher if there's another attribute.

Support specific element height with their custom drawer or expand state. Keep the expand states after reordered, please note the expand states aren't undoable.

3

Constructor & Destructor Documentation

Set the property order as max to ensure applying first.

Returns
The instance.