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