Setting attrib DefaultValue for Lists

I’m wondering if there is a way to detect elements in a public list being added and this being flagged as a non-default value?

Currently I have tried:
[DefaultValue(typeof(List), “”)]
public List testVar

and
[DefaultValue(typeof(List), null)]
public List testVar

But neither get the little vertical, yellow, modified tag when a list is assigned to them. Any thoughts? If this could be extended to include a comparison to a default value that was an actual list that would also be useful to me (but less critical right now).

Right now it should change the color of the size box when the size of the list is changed. Flax does not track which elements were added at the moment. I don’t think it tracks if it is null vs not null.

1 Like

I see. Thanks for the info. Hopefully this will get extended to element comparisons at some point, but I can see it would be very low priority to do this!