Trouble loading bool
Posted: Thu May 09, 2019 11:59 pm
Hi,
I just grabbed Easy Save on the asset store, I've had success with saving and loading floats and ints, but am having trouble with loading bools.
I used Debug.Log("Persistent Path" + Application.persistentDataPath); to locate the .es3 file, upon opening it and reading it, I can verify that the bool is saving to the correct value upon using ES3.Save<bool>("MyBool", MyBool); in the OnApplicationQuit() method.
But, when I use: ES3.Load<bool>("MyBool", MyBool); in the start function, it isn't overriding the value of the bool in the script. I've tested it every which way, and it seems that ES3.Load<bool>("MyBool", MyBool); just doesn't seem to be working for me.
I just grabbed Easy Save on the asset store, I've had success with saving and loading floats and ints, but am having trouble with loading bools.
I used Debug.Log("Persistent Path" + Application.persistentDataPath); to locate the .es3 file, upon opening it and reading it, I can verify that the bool is saving to the correct value upon using ES3.Save<bool>("MyBool", MyBool); in the OnApplicationQuit() method.
But, when I use: ES3.Load<bool>("MyBool", MyBool); in the start function, it isn't overriding the value of the bool in the script. I've tested it every which way, and it seems that ES3.Load<bool>("MyBool", MyBool); just doesn't seem to be working for me.