Class FixedLengthScenario
A scenario that runs for a fixed number of frames during each iteration
Inheritance
FixedLengthScenario
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.Perception.Randomization.Scenarios
Assembly: Unity.Perception.Runtime.dll
Syntax
[AddComponentMenu("Perception/Scenarios/Fixed Length Scenario")]
public class FixedLengthScenario : PerceptionScenario<FixedLengthScenario.Constants>
Fields
framesPerIteration
The number of frames to render per iteration.
Declaration
[Tooltip("The number of frames to render per iteration.")]
public int framesPerIteration
Field Value
Type | Description |
---|---|
int |
Properties
isIterationComplete
Returns whether the current scenario iteration has completed
Declaration
protected override bool isIterationComplete { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
isScenarioComplete
Returns whether the scenario has completed
Declaration
protected override sealed bool isScenarioComplete { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
LoadConfigurationAsset()
Loads Configuration file
Declaration
protected override void LoadConfigurationAsset()
Overrides
OnAwake()
OnAwake is called when this scenario MonoBehaviour is created or instantiated
Declaration
protected override void OnAwake()
Overrides
OnResumeSimulation()
Tries to restore previous simulation state
Declaration
protected override void OnResumeSimulation()
Overrides
OnUpdate()
OnUpdate is called every frame while the scenario is playing
Declaration
protected override void OnUpdate()