I have created a custom inspector for one of my scripts. Via the custom inspector, a 2D array is created and populated with objects of a given type. This much works, I know, because I can use gizmos to ensure these objects actually exist in the array. My problem is, even saving the scene, when I hit the play button, or load another scene and then come back, the array no longer exists. Anyone know why this might be happening?
Sure, multidimensional arrays can’t be serialized by Unity’s serializer. So they aren’t saved and aren’t viewed in the inspector.