I’ve been working on a PropertyDrawer for my Attribute class:
[System.Serializable]
public class Attribute : IGUIItemInfo
{
public EAttributeName attributeName;
public float max;
public float current;
public float baseValue;
public List<Modifier> mods;
My issue is with the mods property. With the default inspector I can see the mods just fine. When I try to add them to my custom PropertyDrawer, I just see a fold icon and no contents:
EditorGUI.PropertyField (r, property.FindPropertyRelative ("mods"), GUIContent.none);
The default shows up as follows:

The custom one shows this:

How would I code for the mods to show up like the first example?
I'm looking for a way to make property drawers for a List too. No luck so far!
– matthewhoyes18