Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 274bafa

Browse files
Re-enabled some reorderablelist features
1 parent 5ba6dca commit 274bafa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Assets/SO Architecture/Editor/Inspectors/RuntimeSetEditor.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ public class RuntimeSetEditor : Editor
1313
private ReorderableList _reorderableList;
1414

1515
private const bool DISABLE_ELEMENTS = false;
16+
private const bool ELEMENT_DRAGGABLE = true;
17+
private const bool LIST_DISPLAY_HEADER = true;
18+
private const bool LIST_DISPLAY_ADD_BUTTON = true;
19+
private const bool LIST_DISPLAY_REMOVE_BUTTON = true;
1620

1721
private void OnEnable()
1822
{
1923
SerializedProperty items = serializedObject.FindProperty("_items");
2024

2125
string title = "List (" + Target.Type + ")";
2226

23-
_reorderableList = new ReorderableList(serializedObject, items, false, true, false, true);
27+
_reorderableList = new ReorderableList(serializedObject, items, ELEMENT_DRAGGABLE, LIST_DISPLAY_HEADER, LIST_DISPLAY_ADD_BUTTON, LIST_DISPLAY_REMOVE_BUTTON);
2428
_reorderableList.drawHeaderCallback += (Rect rect) => { EditorGUI.LabelField(rect, title); };
2529
_reorderableList.drawElementCallback += DrawElement;
2630
_reorderableList.onRemoveCallback += Remove;

0 commit comments

Comments
 (0)