NullReferenceException: Object reference not set to an instance of an object.
at ES3Writer.Merge(ES3Reader reader) [0x000000]
at ES3Writer.Merge() [0x000000]
at ES3Writer.Save(System.Boolean overwriteKeys) [0x000000]
at ES3Writer.Save() [0x000000]
at ES3.Save[T] (System.String key, T value, ES3Settings settings) [0x000000]
at ES3.Save[t] (System.String key, T value) [0x000000]
The line of code is:
Code: Select all
ES3.Save (currentUserId + globalInstance.name + "Levels", myLevels);
And doing
Code: Select all
ES3.Load (currentUserId + globalInstance.name + "Progress", -6));
The thing that bothers me the most is that it works perfectly on PC, Web browser and APK file. But it didn't happen before, just after adding the Assembly Definitions and building for WebGL to use on an Ionic build.
The Unity version i'm using is: 2019.3.7f1