- Home /
Is it possible to have the sorting layer control in a custom inspector?
Each time I see it, I'm thinking the control for the SortingLayer is the perfect control for editable lists, when you can add, remove and change items order in a list.
Is there a way to use it in a custom inspector somewhere in the UnityEditor stuff?
Answer by TurboHermit · Nov 08, 2016 at 01:30 PM
In case anyone ever wondered, they're called ReorderableLists and here's a tutorial how to deal with them (even though they're a bit of a hassle):
http://va.lent.in/unity-make-your-lists-functional-with-reorderablelist/
Your answer
Follow this Question
Related Questions
EditorGUILayout.ObjectField cannot be changed. 1 Answer
How do I get the default scene GUI for a CustomEditor for RectTransform? 1 Answer
How do you get the height dimension of the asset label box in the game inspector 0 Answers
Toggles in Inspector Not Working Properly 2 Answers
How to get the target object value from a PropertyDrawer for an array of objects? 1 Answer