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
Assembly: solution.dll
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
Name | Description |
---|---|
isScenarioComplete | Returns whether the scenario has completed |
isScenarioReadyToStart | The scenario will begin on the frame this property first returns true |
Methods
Name | Description |
---|---|
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. |
OnConfigurationImport() | OnConfigurationImport is called before OnStart in the same frame. This method by default loads a scenario settings from a file before the scenario begins. |