How do you save GameObject[]?

Hello, essentially what I’m trying to do is to save a GameObject array and all GameObject element positions in that array (NOTE- I DO NOT MEAN TRANSFORM POSITION). However, GameObject cannot be saved into PlayerPrefs or PlayerPrefsX. Neither can they be serialized. The most important aspect of this is saving the the GameObjects element position in my GameObject array, since they shift around during gameplay.

Any solutions?

What MGB said. Write a simple ID script that assigns a unique ID every time a gameobject is instntiated or needs to be saved (if it hasn’t already have one). A static variable tracking the number ob objects is handy for this. You can then store the Reference ID and use it to find the gameobject after loading.