Class Scenario<T>
The base class of scenarios with serializable constants
Inherited Members
Namespace: UnityEngine.Experimental.Perception.Randomization.Scenarios
Assembly: solution.dll
Syntax
public abstract class Scenario<T> : ScenarioBase where T : new()
Type Parameters
Name | Description |
---|---|
T | The type of constants to serialize |
Fields
Name | Description |
---|---|
constants | A construct containing serializable constants that control the execution of this scenario |
Properties
Name | Description |
---|---|
genericConstants | Returns this scenario's non-typed serialized constants |
Methods
Name | Description |
---|---|
Deserialize() | Deserializes this scenario's constants from a json file in the Unity StreamingAssets folder |
Serialize() | Serializes this scenario's constants to a json file in the Unity StreamingAssets folder |