https://github.com/demkeys/unityreorderablelistexamples
Two very simple barebones examples of how to use Reorderable Lists in Editor scripts
https://github.com/demkeys/unityreorderablelistexamples
csharp demkeys editor-script example-code reorderable-list reorderablelist unity unity-editor unity-reorderablelist unity-scripts unity3d
Last synced: 3 months ago
JSON representation
Two very simple barebones examples of how to use Reorderable Lists in Editor scripts
- Host: GitHub
- URL: https://github.com/demkeys/unityreorderablelistexamples
- Owner: Demkeys
- Created: 2018-11-06T21:36:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-06T21:54:39.000Z (over 6 years ago)
- Last Synced: 2025-01-11T18:47:10.320Z (4 months ago)
- Topics: csharp, demkeys, editor-script, example-code, reorderable-list, reorderablelist, unity, unity-editor, unity-reorderablelist, unity-scripts, unity3d
- Language: C#
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UnityReorderableListExamples
Two very simple barebones examples of how to use Reorderable Lists in Editor scripts. Both examples show how to setup and user ReorderableList with custom GUI in Editor scripts using the various callbacks provided.
* [ReorderableListExample01.cs](https://github.com/Demkeys/UnityReorderableListExamples/blob/master/ReorderableListExample01.cs) allows you to add items at the end of the list.
* [ReorderableListExample02.cs](https://github.com/Demkeys/UnityReorderableListExamples/blob/master/ReorderableListExample02.cs) allows you to add items after the currently selected item, and also add items at the end of the list.In both examples you can reorder and edit the items. There's also a button that prints out the names from the reordered list, as an example to show that the reodered list can be used after reordering.
If you need more info, you can take a look at the [ReorderableList](https://github.com/Unity-Technologies/UnityCsReference/blob/master/Editor/Mono/GUI/ReorderableList.cs) class code from the Unity Cs Reference repo.