Answer the question
In order to leave comments, you need to log in
How to set the maximum number of elements in an array?
I have an array in the inspector. I need to somehow limit its maximum length. I can't use propertydrawers because I'm already using GUILayout.
If you do not create a collection, how can you set a limit? maybe an attribute?
Answer the question
In order to leave comments, you need to log in
then the array setter with the property remains in OnGUI to draw
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question