- Home /
Question by
MaddoScientisto · May 12, 2016 at 01:40 PM ·
listcustom-inspectorextensioncustom-editorproperty fields
Showing the editors of list elements
I have a scriptableobject containing a bunch of properties, let's call the object ObjectA. Then I have another scriptableobject, ObjectB, containing a list of ObjectA elements.
I'd like, for each element in the list, to show the full editor of that element, in which case all the properties of ObjectA or whatever I define in a custom editor.
I have followed a tutorial (here) and made a function that draws a customized editor for any array
From my understanding, this is the part that is directly responsible for showing the element:
EditorGUILayout.PropertyField(list.GetArrayElementAtIndex(i));
but it only shows the object selection slot, I'd like to add the whole object editor to it. How can that be done?
Comment