I have an editor script which runs a function on editor button press, and stores a bunch of variables in the edited script. Before, I was able to serialize them and save the scene, and the changes would persist even after I left the scene. But a change I made happened to make serialization impossible (I’m using a NativeArray instead of an Array.)
Now, that NativeArray is unable to be serialized, and therefore changes won’t persist through scenes. I still want the changes to be saved however.
How do I save non-serialized variables across scenes with the Editor class?