Class PerceptionScenario<T>
Derive this class to configure perception data capture while coordinating a scenario
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Scenarios
Assembly: solution.dll
Syntax
public abstract class PerceptionScenario<T> : Scenario<T> where T : ScenarioConstants, new()
Type Parameters
Name | Description |
---|---|
T | The type of scenario constants to serialize |
Fields
Name | Description |
---|---|
m_SkippedFirstFrame | The scriptable render pipeline hook used to capture perception data skips the first frame of the simulation when running locally, so this flag is used to track whether the first frame has been skipped yet. |
Properties
Name | Description |
---|---|
isScenarioReadyToStart | The scenario will begin on the frame this property first returns true |
Methods
Name | Description |
---|---|
OnAwake() | OnAwake is called when this scenario MonoBehaviour is created or instantiated |
OnComplete() | OnComplete is called when this scenario's isScenarioComplete property returns true during its main update loop |
OnIterationStart() | OnIterationStart is called before a new iteration begins |
OnStart() | OnStart is called when the scenario first begins playing |