Astra Unity 2.6.6
Astra Unity Plugin
Astra.ProjectConfiguration Class Reference

Used to set configuration values for the current project More...

Inheritance diagram for Astra.ProjectConfiguration:

Public Member Functions

bool IsValid (bool outputErrors=false)
 
string ToJSON ()
 Exports the ProjectConfiguration object into raw JSON (suitable for saving to disk) More...
 

Static Public Member Functions

static implicit operator ProjectConfiguration (TextAsset textAsset)
 
static implicit operator TextAsset (ProjectConfiguration config)
 
static ProjectConfiguration ParseFromJSON (string text)
 Reads in json text and converts it to suitable ProjectConfiguration object More...
 
static string ToJSON (ProjectConfiguration config)
 Exports a ProjectConfiguration object into raw JSON (suitable for saving to disk) More...
 

Public Attributes

string appId = "0"
 
string appSecret = "YOURSECRETHERE"
 
string appEnvironment = "https://YOURNAME.maketafi.com"
 
string userLogin
 
string userPassword
 
bool logEnabled = true
 
LogLevel logLevel = LogLevel.Info
 
string logPath
 
string dbPath
 
bool sceneSerialization = false
 

Detailed Description

Used to set configuration values for the current project

Member Function Documentation

◆ ParseFromJSON()

static ProjectConfiguration Astra.ProjectConfiguration.ParseFromJSON ( string  text)
inlinestatic

Reads in json text and converts it to suitable ProjectConfiguration object

Parameters
text
Returns

◆ ToJSON() [1/2]

string Astra.ProjectConfiguration.ToJSON ( )
inline

Exports the ProjectConfiguration object into raw JSON (suitable for saving to disk)

Returns
A string as json data of the config

◆ ToJSON() [2/2]

static string Astra.ProjectConfiguration.ToJSON ( ProjectConfiguration  config)
inlinestatic

Exports a ProjectConfiguration object into raw JSON (suitable for saving to disk)

Parameters
config
Returns
A string as json data of the config

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