docs.unity3d.com
    Show / Hide Table of Contents

    Class ScenePlacementModule.PlacementOverrideData

    Overrides to the ScenePlacementModule based on the PlacementOverride of the dragged object.

    Inheritance
    Object
    ScenePlacementModule.PlacementOverrideData
    Namespace: UnityEditor.MARS.Authoring
    Syntax
    public class PlacementOverrideData : object

    Properties

    axisOverride

    Object's axis orient override

    Declaration
    public AxisEnum axisOverride { get; }
    Property Value
    Type Description
    AxisEnum

    axisOverrideVector

    Vector of the object's axis override

    Declaration
    public Vector3 axisOverrideVector { get; }
    Property Value
    Type Description
    Vector3

    orientToSurfaceOverride

    Object's orient to surface override

    Declaration
    public bool orientToSurfaceOverride { get; }
    Property Value
    Type Description
    Boolean

    snapToPivotOverride

    Object's pivot override behavior

    Declaration
    public bool snapToPivotOverride { get; }
    Property Value
    Type Description
    Boolean

    useAxisOverride

    Use the object's orient to surface override

    Declaration
    public bool useAxisOverride { get; }
    Property Value
    Type Description
    Boolean

    useOrientToSurfaceOverride

    Use the object's orient to surface override

    Declaration
    public bool useOrientToSurfaceOverride { get; }
    Property Value
    Type Description
    Boolean

    useSnapToPivotOverride

    Use the object's pivot override

    Declaration
    public bool useSnapToPivotOverride { get; }
    Property Value
    Type Description
    Boolean

    Methods

    ResetData()

    Reset the PlacementOverrideData's object to default value

    Declaration
    public void ResetData()

    SetOverrideData(PlacementOverride)

    Set the override data to the object's PlacementOverride

    Declaration
    public void SetOverrideData(PlacementOverride overrides)
    Parameters
    Type Name Description
    PlacementOverride overrides
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023