API ReferenceSandbox
SystemsConfigclass
Configuration for GameObjectSystem properties at a project level. Specific scenes may override this as well - but will be serialized directly in the scene.
Constructors1
Showing 1 constructors
public SystemsConfig()
No results match this filter.
Methods4
Showing 4 methods
public static object GetDefaultValue(Sandbox.PropertyDescription property)
Get the default value for a GameObjectSystem property.
| Parameter | Type | Description |
|---|---|---|
| property | PropertyDescription | — |
Returns:
object—public object GetPropertyValue(Sandbox.TypeDescription systemType, Sandbox.PropertyDescription property)
Get property value for a specific system type. Returns the configured value, or a default value for the type if not found.
| Parameter | Type | Description |
|---|---|---|
| systemType | TypeDescription | — |
| property | PropertyDescription | — |
Returns:
object—public void SetPropertyValue(Sandbox.TypeDescription systemType, Sandbox.PropertyDescription property, object value)
Set property value for a specific system type
| Parameter | Type | Description |
|---|---|---|
| systemType | TypeDescription | — |
| property | PropertyDescription | — |
| value | object | — |
Returns:
void—public bool TryGetPropertyValue(Sandbox.TypeDescription systemType, Sandbox.PropertyDescription property, object value)
Try to get property value for a specific system type. Returns true if the property was found in the config.
| Parameter | Type | Description |
|---|---|---|
| systemType | TypeDescription | — |
| property | PropertyDescription | — |
| value | object | — |
Returns:
bool—No results match this filter.
Properties1
Showing 1 properties
protected System.Collections.Generic.Dictionary`2<string,System.Collections.Generic.Dictionary`2<string,object>> Sandbox.SystemsConfig.Systems { get; set; }
Stores GameObjectSystems to property names to property values
Returns:
Dictionary<string,Dictionary<string,object>>—No results match this filter.