Open rutkoski opened 3 years ago
When you add the first element to a list of a subtype, the subtype's default property values are not set.
Ex.:
public class Subtype { public int value = -1; } public Subtype[] values;
values[].value is created as 0, not -1.
This is an issue with Unity, not the array drawer. It is only responsible for rendering the array with a more useful UI
When you add the first element to a list of a subtype, the subtype's default property values are not set.
Ex.:
values[].value is created as 0, not -1.