This class is a helper class that reads the config file and sets the properties in CellexalConfig.Config.
More...
This class is a helper class that reads the config file and sets the properties in CellexalConfig.Config.
◆ DeserializeConfig()
Config CellexalVR.General.ConfigManager.DeserializeConfig |
( |
byte[] |
serializedBytes | ) |
|
Deserializes the config.
- Parameters
-
- Returns
- The deserialized config.
◆ MultiUserSynchronise()
void CellexalVR.General.ConfigManager.MultiUserSynchronise |
( |
| ) |
|
Synchronizes our config with a clients.
◆ ReadConfigFile()
void CellexalVR.General.ConfigManager.ReadConfigFile |
( |
string |
configPath, |
|
|
bool |
switchTo = true |
|
) |
| |
Reads a config file.
- Parameters
-
configPath | The full path to the config file. |
switchTo | True if this config should become the new config to use right now, setting this to false disables invoking the CellexalEvents.ConfigLoaded event. |
◆ ResetToDefault()
void CellexalVR.General.ConfigManager.ResetToDefault |
( |
| ) |
|
Copies the deafult config file and overwrites the current one.
◆ SaveConfigFile()
void CellexalVR.General.ConfigManager.SaveConfigFile |
( |
string |
path | ) |
|
Saves the current config as a file. If a file already exists at the specified path, it will be overwritten.
- Parameters
-
path | The path to the file. |
◆ SerializeConfig()
byte [] CellexalVR.General.ConfigManager.SerializeConfig |
( |
Config |
serializableConfig | ) |
|
Serializes the config.
- Parameters
-
serializableConfig | The config to serialize |
- Returns
- The raw byte data representing the config.
◆ SynchroniseConfig()
void CellexalVR.General.ConfigManager.SynchroniseConfig |
( |
byte[] |
data | ) |
|
Synchronized our config with the serialized data from another clients config.
- Parameters
-
The documentation for this class was generated from the following file:
- cellexalvr_cloudxr/Assets/Scripts/General/ConfigManager.cs