List-size don't save in editor

I used list and array() in my script, to assign multiple objects to a variable.
But each time, I want to change the size of the list/array in the inspector, it doesn’t save my input.

Example: Size is 0. I change it to 5. Leave the field. It jumps back to 0.

In an older project, where it worked fine, there is this bug, too. Size is 8. I change it. Leave the field. It jumps back to 8.

Since it worked months ago in my older project, it must be a unity-bug, not a bug in my script.

Are you just entering the new value and then click outside the field? If so, you have to press ‘enter’ before clicking anywhere else.

Thank you :slight_smile:

I forgot it… I used the lists months ago and now I forgot it.
So this ‘problem’ is solved.

But maybe it would be good, when the changes would be saved automatically, without pressing ENTER.