Unity inspector lag

Hi,

I'm having a problem where I have an array with around 300 custom class references in it. Unfortunately when I pause the game and click the GameObject which has a script which has this array in it, the inspector and Unity lag really really badly. When I click a different GameObject in the Hierarchy window everything is fine again, the inspector really just doesn't like displaying a large list of variables.

Is this normal? Is there any way to stop it happening?

I would add the HideInInspector attribute to that variable.

If you need to see the array values in the inspector, you can create a custom editor for your script. Have a look at iTweenPath editor for an example on creating your own editor.