- Home /
EditorGUI add SortingLayer-like list to custom Editor
Hi, I can't find a way to add a list to my costum inspector like the one for the SortingLayers (With Drag and Drop for changing the order). Can someone tell me if there's a way to implement the same list in you costum editor?
Best Regards, Théo
Answer by Hellium · Aug 14, 2015 at 12:12 PM
Valentin Simonov has done a great job about this. See the following link :
http://va.lent.in/unity-make-your-lists-functional-with-reorderablelist/
Super helpful article Hellium.
For anyone else who stumbles across this and doesn't want to spend quite as long as I did wrestling with ReorderableLists... Here's an example CustomEditor that implements a function to create ReorderableLists with with self hiding/expanding elements: https://gist.github.com/JesseHamburger/3d17f3892e671a4ae17873ec4e8a0926