Good day!
Help me to combine the fields of two object arrays in the inspector.
I have a class (EntityParent) with an array of objects (EntityParentProps) that contain properties.
Then the class needs to inherit (EntityChild) and add new fields (EntityChildProps)
public class EntityParent : MonoBehaviour
{
[System.Serializable] public class EntityParentProps {
[SerializeField] string field1;
}
[SerializeField] EntityParentProps[] entityParentProps ;
}
public class EntityChild : EntityParent
{
[System.Serializable] public class EntityChildProps {
[SerializeField] int field2;
}
[SerializeField] EntityChildProps[] entityChildProps;
}
The EntityChild class arrays are displayed separately in the inspector
Is there any way to combine the elements of an array so that they are displayed like this
