docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ScenePlacementModule

    Module that handles placing objects in the scene onto interaction targets when dragging objects from the project window and translating objects while holding Shift

    Inheritance
    object
    ScenePlacementModule
    Implements
    IModuleDependency<SceneViewInteractionModule>
    IModuleDependency<SimulationSceneModule>
    IModule
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.MARS.Authoring
    Assembly: Unity.MARS.Editor.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public class ScenePlacementModule : IModuleDependency<SceneViewInteractionModule>, IModuleDependency<SimulationSceneModule>, IModule

    Properties

    PlacementOverrides

    Placement override values from the currently dragged object

    Declaration
    public ScenePlacementModule.PlacementOverrideData PlacementOverrides { get; }
    Property Value
    Type Description
    ScenePlacementModule.PlacementOverrideData

    isDragging

    Is there a currently dragged object.

    Declaration
    public bool isDragging { get; }
    Property Value
    Type Description
    bool

    orientAxis

    Axis for the up direction of an object being oriented to a surface

    Declaration
    public AxisEnum orientAxis { get; set; }
    Property Value
    Type Description
    AxisEnum

    orientToSurface

    If enabled, objects being placed in the editor should orient to the surface

    Declaration
    public bool orientToSurface { get; set; }
    Property Value
    Type Description
    bool

    snapToPivot

    If enabled, objects being placed in the editor should snap to the pivot of the target

    Declaration
    public bool snapToPivot { get; set; }
    Property Value
    Type Description
    bool

    Events

    ObjectDropped

    Action when a gameobject is dropped onto another gameobject and attached to it.

    Declaration
    public event Action<GameObject, GameObject> ObjectDropped
    Event Type
    Type Description
    Action<GameObject, GameObject>

    Implements

    Unity.XRTools.ModuleLoader.IModuleDependency<T>
    Unity.XRTools.ModuleLoader.IModuleDependency<T>
    Unity.XRTools.ModuleLoader.IModule
    In This Article
    Back to top
    Copyright © 2025 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)