Class PerceptionScenario<T>
Derive this class to configure perception data capture while coordinating a scenario
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Scenarios
Syntax
public abstract class PerceptionScenario<T> : Scenario<T> where T : ScenarioConstants, new()
Type Parameters
Name | Description |
---|---|
T | The type of scenario constants to serialize |
Properties
isScenarioReadyToStart
The scenario will begin on the frame this property first returns true
Declaration
protected override bool isScenarioReadyToStart { get; }
Property Value
Type | Description |
---|---|
Boolean | Whether the scenario should start this frame |
Overrides
Methods
OnComplete()
OnComplete is called when this scenario's isScenarioComplete property returns true during its main update loop
Declaration
protected override void OnComplete()
Overrides
OnIterationStart()
OnIterationStart is called before a new iteration begins
Declaration
protected override void OnIterationStart()
Overrides
OnStart()
OnStart is called when the scenario first begins playing
Declaration
protected override void OnStart()