Class Randomizer
Derive Randomizer to implement systems that randomize GameObjects and/or simulation properties.
Inherited Members
Namespace: UnityEngine.Experimental.Perception.Randomization.Randomizers
Assembly: solution.dll
Syntax
[Serializable]
public abstract class Randomizer
Properties
| Name | Description |
|---|---|
| enabled | Enabled Randomizers are updated, disabled Randomizers are not. |
| scenario | Returns the scenario containing this Randomizer |
| tagManager | Retrieves the RandomizerTagManager of the scenario containing this Randomizer |
Methods
| Name | Description |
|---|---|
| OnCreate() | OnCreate is called when the Randomizer is added or loaded to a scenario |
| OnIterationEnd() | OnIterationEnd is called the after a scenario iteration has completed |
| OnIterationStart() | OnIterationStart is called at the start of a new scenario iteration |
| OnScenarioComplete() | OnScenarioComplete is called the after the entire scenario has completed |
| OnStartRunning() | OnStartRunning is called on the first frame a Randomizer is enabled |
| OnStopRunning() | OnStartRunning is called on the first frame a disabled Randomizer is updated |
| OnUpdate() | OnUpdate is executed every frame for enabled Randomizers |