docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ForegroundObjectPlacementRandomizer

    Creates a 2D layer of of evenly spaced GameObjects from a given list of prefabs

    Inheritance
    object
    Randomizer
    ForegroundObjectPlacementRandomizer
    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/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
    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

    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)