Class UnitySimulationScenario<T>
A scenario must derive from this class to be compatible with the Run in Unity Simulation window. The iterations of this scenario will be executed in parallel across a user specified number of worker instances when run in Unity Simulation.
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Scenarios
Syntax
public abstract class UnitySimulationScenario<T> : PerceptionScenario<T> where T : UnitySimulationScenarioConstants, new()
Type Parameters
| Name | Description |
|---|---|
| T | The type of scenario constants to serialize |
Properties
isScenarioComplete
Returns whether the scenario has completed
Declaration
protected override sealed bool isScenarioComplete { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Overrides
Methods
DeserializeConfiguration()
Overwrites this scenario's randomizer settings and scenario constants from a JSON serialized configuration
Declaration
protected override void DeserializeConfiguration()
Overrides
IncrementIteration()
This method selects what the next iteration index will be. By default, the scenario will simply progress to the next iteration, but this behaviour can be overriden.
Declaration
protected override sealed void IncrementIteration()
Overrides
LoadConfigurationAsset()
Loads and stores a JSON scenario settings configuration file before the scenario starts
Declaration
protected override void LoadConfigurationAsset()