- Home /
[noone knows] array of objects with CustomPropertyDrawer not displayed
[Serializable]
public class Condition
{
public int index;
public State[] state;
}
[Serializable]
public class State
{
public bool switch;
public Target target;
}
I have array of Conditions and in each Condition is array of States, i have CustomPropertyDrawers for both and I can see them in normal inspector, however I need them in custom inspector and I get just one line with Conditions array name, while in normal inspector i can see that the array works
any ideas what to do to display the array of serialized objects in custom inspector by code?
i was trying:
EditorGUILayout.PropertyField(serializedTile.FindProperty("conditions"));
without success and i have no idea if there's other thing i need to do to be able to display it in OnInspectorGUI
be so kind and don't delete the [noone knows] tag because i believe it's more ethical to attract pro's eyes on another then landing page instead of popping up the question and make other questions move downwards (as you can see in my profile i don't use this tag on every stupid question i have ever had