For the Nintendo Switch I had to reimplement my ES3 solution in order to work with cache due to the fact I cannot save directly into memory.
So for every new scene, I generate a new ES3Settings that I use in my save and load methods. Code looks like:
Code: Select all
private void InitializeMemorySettings()
{
MemorySettings = new ES3Settings
{
location = ES3.Location.File,
directory = ES3.Directory.PersistentDataPath,
path = SaveFileName.MOUNT_NAME,
encryptionType = ES3.EncryptionType.None,
saveChildren = false,
format = ES3.Format.JSON,
prettyPrint = true,
bufferSize = 2048,
referenceMode = ES3.ReferenceMode.ByRefAndValue,
serializationDepthLimit = 64
};
}
BUT when moving to a new scene, so the Player object that is in the hierarchy is a "new one", when trying load into it the previously saved information, I get the next error and my player values are not overrided:
Code: Select all
"Reference for Code.FunctiojnalLogic.Models.Player with ID 43433142314221 could not be found in Easy Save's reference manager. If you are loading objects dinamically, this warning is expected and can be ignored.
Probably, as I am overriding my ES3Settings, something is missing. Could you identify what could be happening?
Thank you in advance.
Cheers.