This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEditorInternal; | |
| public static class ReorderableListUtility { | |
| public static ReorderableList GetListWithFoldout(SerializedObject serializedObject, SerializedProperty property, bool draggable, bool displayHeader, bool displayAddButton, bool displayRemoveButton) { | |
| var list = new ReorderableList(serializedObject, property, draggable, displayHeader, displayAddButton, displayRemoveButton); | |
| list.drawHeaderCallback = (Rect rect) => { |