NaughtyAttributes icon indicating copy to clipboard operation
NaughtyAttributes copied to clipboard

[Request] Fixed size array inspector

Open rhys-vdw opened this issue 3 years ago • 0 comments

An attribute for List or Array that forces the field into a fixed number of elements:

[SerializeField, ArraySize(5)] int[] _foo = default;

This would be a regular array inspector with a disabled "size" option and a locked number of elements.

Possible extension: min/max elements.

rhys-vdw avatar Feb 22 '22 04:02 rhys-vdw