ES3Settings Constructor

public static ES3Settings ES3Settings.ctor(string path, ES3Settings settings)

public static ES3Settings ES3Settings.ctor(ES3.EncryptionType encryptionType, string encryptionPassword)

Description

Creates a new instance of the ES3Settings class.

Parameters

[table th=”0″]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.”

[/table]

Returns

A new instance of the ES3Settings class.

Examples

Save data using an ES3Settings object to specify settings.

// 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);