Class Randomizer
Derive Randomizer to implement systems that randomize GameObjects and/or simulation properties.
Inherited Members
Namespace: UnityEngine.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 |
---|---|
OnAwake() | OnAwake is called when the Randomizer is added or loaded to a scenario |
OnCreate() | OnCreate is called when the Randomizer is added or loaded to a scenario |
OnDisable() | OnDisable is called when the Randomizer becomes disabled |
OnEnable() | OnEnabled is called when the Randomizer becomes enabled and active |
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 |
OnScenarioStart() | OnScenarioStart is called on the frame the scenario begins iterating |
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 |