- Home /
Limiting size of data structures in editor
I was wondering if there was a way to apply a universal size cap for Lists in the editor. For example, I have three lists, and I want them all to have a size that is specified by modifying a single variable in the editor, as opposed to modifying all three lists individually.
Comment
Answer by Landern · Mar 14, 2013 at 02:35 PM
You could use UnityEditor name space, implement a PropertyModification to update each of your targeted objects. If it is an actual generic List, modifying the capacity is no good, you will need to work around that and instantiate objects even if defaulted values to fill the object.
Your answer
![](https://koobas.hobune.stream/wayback/20220613094413im_/https://answers.unity.com/themes/thub/images/avi.jpg)