I had an older version of unity and this worked just fine, but trying to update everything and it limits my array to 100.
private const int SYSTEMS = 10000; //how many systems we want
public GameObject[ ] universes = new GameObject[SYSTEMS];
this code used to work. Now it limits it to 100 as i try to add number 100 it fails with out of index exception. I have done multiple debugs to see that this is the issue.
later in the code when I do Debug.Log(universes.Length); this gives the answer 100. I do not change the size of it ever so why is it limited to 100?
As a public field, and assuming it’s in something like a [Serializable] type or a UnityEngine.Object type like ScriptableObject or MonoBehaviour, that field will be serialized. Arrays are resizable in the inspector, so you could have accidentally saved the array as having 100 elements. If you don’t need it to be serialized, make the field private or add [NonSerialized]. If you still need it to be serialized, try setting the length to that large value in the inspector.