Class BackgroundObjectPlacementRandomizer
Creates multiple layers of evenly distributed but randomly placed objects
Inherited Members
Namespace: UnityEngine.Experimental.Perception.Randomization.Randomizers.SampleRandomizers
Assembly: solution.dll
Syntax
[Serializable]
[AddRandomizerMenu("Perception/Background Object Placement Randomizer")]
public class BackgroundObjectPlacementRandomizer : Randomizer
Fields
Name | Description |
---|---|
depth | The Z offset component applied to all generated background layers |
layerCount | The number of background layers to generate |
placementArea | The 2D size of the generated background layers |
prefabs | A categorical parameter for sampling random prefabs to place |
separationDistance | The minimum distance between placed background objects |
Methods
Name | Description |
---|---|
OnIterationEnd() | Deletes generated background objects after each scenario iteration is complete |
OnIterationStart() | Generates background layers of objects at the start of each scenario iteration |