Class ForegroundObjectPlacementRandomizer
Creates a 2D layer of of evenly spaced GameObjects from a given list of prefabs
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Randomizers.SampleRandomizers
Assembly: solution.dll
Syntax
[Serializable]
[AddRandomizerMenu("Perception/Foreground Object Placement Randomizer")]
public class ForegroundObjectPlacementRandomizer : Randomizer
Fields
| Name | Description |
|---|---|
| depth | The Z offset component applied to the generated layer of GameObjects |
| placementArea | The size of the 2D area designated for object placement |
| prefabs | The list of prefabs sample and randomly place |
| separationDistance | The minimum distance between all placed objects |
Methods
| Name | Description |
|---|---|
| OnAwake() | OnAwake is called when the Randomizer is added or loaded to a scenario |
| OnIterationEnd() | Deletes generated foreground objects after each scenario iteration is complete |
| OnIterationStart() | Generates a foreground layer of objects at the start of each scenario iteration |