docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BackgroundObjectPlacementRandomizer

    Creates multiple layers of evenly distributed but randomly placed objects

    Inheritance
    object
    Randomizer
    BackgroundObjectPlacementRandomizer
    Inherited Members
    Randomizer.enabled
    Randomizer.scenario
    Randomizer.tagManager
    Randomizer.OnCreate()
    Randomizer.OnScenarioComplete()
    Randomizer.OnStartRunning()
    Randomizer.OnStopRunning()
    Randomizer.OnUpdate()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)