ES3Settings Constructor
Description
Creates a new instance of the ES3Settings class.
Parameters
path | [Optional] A path which these settings point to. |
settings |
[Optional] Uses the settings in this ES3Settings object as the defaults for the one we are creating. |
encryptionType |
[Optional] The type of encryption to use, if any. |
encryptionPassword |
[Optional] The password to use when encrypting data. |
Returns
A new instance of the ES3Settings class.
Examples
Save data using an ES3Settings object to specify settings.
1 2 3 4 5 |
// Create a new ES3Settings to enable encryption. var settings = new ES3Settings(ES3.EncryptionType.AES, myPassword); // Use the ES3Settings object to encrypt data when saving. ES3.Save<Transform>("myTransform", this.transform, settings); |