Save extra information when saving the scene (and do the opposite when loading)

Hello everybody :),

I can’t find any information or good practices on how to save and load extra information in scene when editing the scene in the editor.

Actually, in the editor I can change some script behaviour’s parameters that I would like to save and load with the normal save and load process of the scene in the editor.

How can I do that :face_with_spiral_eyes:?

Is there a special Save and Load events that I can catch in a editor script?
Or do I have to implement some serializable interface?

Thank you very much for your help in advance :sunglasses:,
I’m completely lost…

Cya

BigBulle :wink:

Just to say that I’ve put this question on unity answers
here

Can you be more specific about the type of extra information you need to store? You can often add data to GameObjects as public variables so they will get saved as normal in the scene. Certain types of data (eg, special data structures) can’t be stored like this but they can usually be encoded in arrays for storage purposes.

andeeee,

thank you very much for your answer :slight_smile:
This is what I’ve made. I’ve change my design to use the internal serialization process of Unity and now everything is running much more smoothly.

CU :wink: