Reference Serialization

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
porters25
Posts: 11
Joined: Sun May 01, 2016 12:28 pm

Reference Serialization

Post by porters25 »

Hi Joel,

I noticed you mentioned that Easy Save 3 will be able to save UnityEngine.Object reference fields. What about non-unity references types (e.g. classes not derived from UnityEngine.Object)? Will ES3 now save those by reference as well, or does it still save by value (i.e. you end up with two references when you de-serialize)?

- Aaron
User avatar
Joel
Moodkie Staff
Posts: 4852
Joined: Wed Nov 07, 2012 10:32 pm

Re: Reference Serialization

Post by Joel »

Hi Aaron,

Unfortunately it's not possible to save references to non-Unity types as Unity currently provides no way of doing this.

However, you can use ES3.LoadInto to load data into a reference of your choosing.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
porters25
Posts: 11
Joined: Sun May 01, 2016 12:28 pm

Re: Reference Serialization

Post by porters25 »

Okay. Thanks Joel.
Locked