Wrapper to encrypt and store an object supported by UnityEngine.JsonUtility.  
 More...
Inherits CryptoValue< T, U >.
Wrapper to encrypt and store an object supported by UnityEngine.JsonUtility. 
- Template Parameters
- 
  
    | T | The object type. |  | U | The property type for editing, commonly use Torstring. |  
 
Initialize by serializing the specified object value. 
- Parameters
- 
  
  
 
 
  
  | 
        
          | CryptoObject (string json) override T ToValue | ( | string | text | ) |  |  | protectedvirtual | 
 
Initialize with the specified JSON string. 
- Parameters
- 
  
  
Convert the decrypted text to the real value. 
- Parameters
- 
  
  
- Returns
- Value.
Reimplemented from CryptoValue< T, U >.
 
 
  
  | 
        
          | override string ToText | ( | T | value | ) |  |  | protectedvirtual | 
 
Convert the real value to the text to encrypt. 
- Parameters
- 
  
  
- Returns
- Text.
Reimplemented from CryptoValue< T, U >.
 
 
  
  | 
        
          | override string ToString | ( |  | ) |  |  | inherited | 
 
Return the plain text. 
- Returns
- A stringrepresents this.
 
 
Read the stored real value. 
- Returns
- Value.
 
 
  
  | 
        
          | void WriteValue | ( | T | value | ) |  |  | protectedinherited | 
 
Write the real value to store. 
- Parameters
- 
  
  
 
 
Read the decrypted plain text. 
- Returns
- Plain text.
 
 
  
  | 
        
          | void WriteText | ( | string | text, |  
          |  |  | bool | force = false |  
          |  | ) |  |  |  | protectedinherited | 
 
Encrypt the plain text and write with a new key. 
- Parameters
- 
  
    | text | Plain text. |  | force | If to force update, otherwise check changed in editor. |  
 
 
 
  
  | 
        
          | virtual void OnBeforeSerialize | ( |  | ) |  |  | virtualinherited | 
 
OnBeforeSerialize, check if saving to obfuscate the plain data, otherwise prepare the editee value. 
Reimplemented in CryptoCache< T, U >.
 
 
  
  | 
        
          | virtual void OnAfterDeserialize | ( |  | ) |  |  | virtualinherited | 
 
OnAfterDeserialize, check if to store and clean the editee value. 
Reimplemented in CryptoCache< T, U >.
 
 
  
  |  | protectedvirtualinherited | 
 
Read the stored value to the editee value. 
- Returns
- Editee.
 
 
  
  | 
        
          | virtual void WriteEditee | ( | U | editee | ) |  |  | protectedvirtualinherited | 
 
Write the editee value to the stored value. 
- Parameters
- 
  
  
 
 
  
  | 
        
          | virtual string ValidateEditee | ( |  | ) |  |  | protectedvirtualinherited | 
 
Validate the editee value, return null if correct, otherwise the warning message. 
- Returns
- Message.