Class SceneRandomizer
A randomizer which dynamically loads in scenes during a scenario run every few iterations.
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Randomizers
Assembly: Unity.Perception.Runtime.dll
Syntax
[Serializable]
[MovedFrom("UnityEngine.Perception.Internal")]
[AddRandomizerMenu("Perception/Scene Randomizer")]
public class SceneRandomizer : Randomizer
Fields
includedScenes
When switching to a scene, the new scene will be picked from the options below.
Declaration
[FormerlySerializedAs("sceneReferenceParameter")]
[UsedImplicitly]
[Tooltip("When switching to a scene, the new scene will be picked from the options below. We ensure that no two consecutive scenes are the same.")]
public CategoricalParameter<SceneReference> includedScenes
Field Value
Type | Description |
---|---|
CategoricalParameter<SceneReference> |
Remarks
We ensure that no two consecutive scenes are the same.
iterationsPerScene
The number of iterations to spend in a scene before switching to a new one.
Declaration
[UsedImplicitly]
[Tooltip("The number of iterations to spend in a scene before switching to a new one.")]
public int iterationsPerScene
Field Value
Type | Description |
---|---|
int |
Methods
OnIterationStart()
OnIterationStart is called at the start of a new Scenario iteration
Declaration
protected override void OnIterationStart()