File Editor

Discussion and help for Easy Save 3
Post Reply
BFRETHGIL
Posts: 23
Joined: Wed Jun 13, 2018 8:25 pm

File Editor

Post by BFRETHGIL »

Hey there,
Just switched from ES2 to ES3, I couldn't find the file editor option and by searching the forum I can see that 2 years ago you said that you'll add it in the future, am I missing something?
I want to encrypt the file, so it's not going to be easy to view the encrypted file in a script editor...

Thanks Joel!
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: File Editor

Post by Joel »

Hi there,

As there's not been much demand for the file editor (because as you suggest, most people edit the data directly in a text editor), we've been focusing on other features. However, I've added a feature request for it here.

In the meantime the best alternative would be to leave data unencrypted during development, but then enable encryption for the build. This could be done using platform-dependent compilation with the UNITY_EDITOR directive.

i.e. something along the lines of:
var settings = new ES3Settings();
#if UNITY_EDITOR
settings.encryptionType = ES3.EncryptionType.None;
#else
settings.encryptionType = ES3.EncryptionType.AES;
#endif
ES3.Save<int>("myKey", myData, settings);
All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply