- Home /
Lag in Inspector
I have a script which has an array with custom class references on it. While I was editing the array from the inspector, I accidentally entered 1500 instead of 15 for the size of the array, and immediately set it back to 15 after realizing. But after this accident whenever I try to edit this array, or anything on that gameobject from the inspector, I encounter a great lag, about 3-4 secs, which makes it very painful to change/set the variables.
My problem is very close to this one: http://answers.unity3d.com/questions/58061/unity-inspector-lag.html
I tried restarting Unity, removing the array, and even the class it is referencing without any luck. What may be the cause of this?
EDIT: Just a heads up, I solved my issue by creating an identical gameobject with same script on it with the same values, and deleting the original one that was laggy, but if there is a more logical approach that can fix the original gameobject, please share it with the community.