Depiction Engine For Unity 2023.0 (Alpha)
Loading...
Searching...
No Matches
DepictionEngine.JsonAttribute Class Reference

Expose a property to the DepictionEngine.JsonInterface and make available to be persisted in a Datasource. More...

Public Member Functions

 JsonAttribute (bool get=true, string conditionalGetMethod="")
 Expose a property to the DepictionEngine.JsonInterface and make available to be persisted in a DepictionEngine.Datasource.
 

Public Attributes

bool get
 If true the property will be write only and wont be included when calling DepictionEngine.JsonUtility.GetObjectJson.
 
string conditionalGetMethod
 The name of a method which returns a boolean. If it returns true the property will be included when calling DepictionEngine.JsonUtility.GetObjectJson otherwise it wont.
 

Detailed Description

Expose a property to the DepictionEngine.JsonInterface and make available to be persisted in a Datasource.

Constructor & Destructor Documentation

◆ JsonAttribute()

DepictionEngine.JsonAttribute.JsonAttribute ( bool  get = true,
string  conditionalGetMethod = "" 
)

Expose a property to the DepictionEngine.JsonInterface and make available to be persisted in a DepictionEngine.Datasource.

Parameters
getIf true the property will be write only and wont be included when calling DepictionEngine.JsonUtility.GetObjectJson.
conditionalGetMethodThe name of a method which returns a boolean. If it returns true the property will be included when calling DepictionEngine.JsonUtility.GetObjectJson otherwise it wont.

The documentation for this class was generated from the following file: