I have a list. It has 50 (technically 51) values in it.
[HideInInspector] public List<double> upgradeCosts = new() { 0 /* First 0 means nothing, since item 1 counts as "item 0" */, 0, 0.1, 0.2, 0.5, 2, 5, 12, 20, 30, 100 /* 10 */, 125, 200, 450, 750, 900, 1100, 1500, 2500, 9000, 25000 /* 20 */, /* costs past this are subject to change */ 50000, 150000, 250000, 400000, 1e6, 1.5e6, 2.3e6, 2.5e6, 3.25e6, 5e6 /* 30 */, 8e6, 1.4e7, 2e7, 4.4e7, 9e7, 1.1e8, 1.3e8, 2.2e8, 3e8, 5e8 /* 40 */, 9.4e8, 1.5e9, 2.2e9, 3.7e9, 6.2e9, 8e9, 9.8e9, 1.34e10, 2.5e10, 1e11 /* 50 */ };
In another script that references this script, I wrote Debug.Log("Upgrade Costs List: " + USM.upgradeCosts.Count);
No matter how many values I add, the result is always:
![]()
Does anyone know why this is happening? I don’t believe there’s anything else that should be (or could be) limiting it.