docs.unity.cn
    Show / Hide Table of Contents

    Struct GestureTransformationUtility.Placement

    Result of the function GetBestPlacementPosition(Vector3, Vector2, Single, Single, Single, GestureTransformationUtility.GestureTranslationMode, ARSessionOrigin, TrackableType, Int32) that indicates if a placement position was found and information about the placement position.

    Namespace: UnityEngine.XR.Interaction.Toolkit.AR
    Syntax
    public struct Placement

    Properties

    hasHoveringPosition

    true if this Placement has a valid hoveringPosition value, otherwise false.

    Declaration
    public bool hasHoveringPosition { get; set; }
    Property Value
    Type Description
    Boolean
    See Also
    hoveringPosition

    HasHoveringPosition

    true if this Placement has a valid hoveringPosition value, otherwise false.

    Declaration
    public bool HasHoveringPosition { get; set; }
    Property Value
    Type Description
    Boolean
    See Also
    hoveringPosition

    hasPlacementPosition

    true if this Placement has a valid placementPosition value, otherwise false.

    Declaration
    public bool hasPlacementPosition { get; set; }
    Property Value
    Type Description
    Boolean
    See Also
    placementPosition

    HasPlacementPosition

    true if this Placement has a valid placementPosition value, otherwise false.

    Declaration
    public bool HasPlacementPosition { get; set; }
    Property Value
    Type Description
    Boolean
    See Also
    placementPosition

    hasPlane

    true if this Placement has a placementPlane, otherwise false.

    Declaration
    public bool hasPlane { get; set; }
    Property Value
    Type Description
    Boolean
    See Also
    placementPlane

    HasPlane

    true if this Placement has a placementPlane, otherwise false.

    Declaration
    public bool HasPlane { get; set; }
    Property Value
    Type Description
    Boolean
    See Also
    placementPlane

    hoveringPosition

    The position that the object should be displayed at before the placement has been confirmed.

    Declaration
    public Vector3 hoveringPosition { get; set; }
    Property Value
    Type Description
    Vector3
    See Also
    hasHoveringPosition

    HoveringPosition

    The position that the object should be displayed at before the placement has been confirmed.

    Declaration
    public Vector3 HoveringPosition { get; set; }
    Property Value
    Type Description
    Vector3
    See Also
    hasHoveringPosition

    placementPlane

    The that the object is being placed on.

    Declaration
    public ARPlane placementPlane { get; set; }
    Property Value
    Type Description
    ARPlane
    See Also
    hasPlane

    PlacementPlane

    The that the object is being placed on.

    Declaration
    public ARPlane PlacementPlane { get; set; }
    Property Value
    Type Description
    ARPlane
    See Also
    hasPlane

    placementPosition

    The resulting position that the object should be placed at.

    Declaration
    public Vector3 placementPosition { get; set; }
    Property Value
    Type Description
    Vector3
    See Also
    hasPlacementPosition

    PlacementPosition

    The resulting position that the object should be placed at.

    Declaration
    public Vector3 PlacementPosition { get; set; }
    Property Value
    Type Description
    Vector3
    See Also
    hasPlacementPosition

    placementRotation

    The resulting rotation that the object should have.

    Declaration
    public Quaternion placementRotation { get; set; }
    Property Value
    Type Description
    Quaternion

    PlacementRotation

    The resulting rotation that the object should have.

    Declaration
    public Quaternion PlacementRotation { get; set; }
    Property Value
    Type Description
    Quaternion

    updatedGroundingPlaneHeight

    The resulting starting height of the plane that the object is being placed along.

    Declaration
    public float updatedGroundingPlaneHeight { get; set; }
    Property Value
    Type Description
    Single

    UpdatedGroundingPlaneHeight

    The resulting starting height of the plane that the object is being placed along.

    Declaration
    public float UpdatedGroundingPlaneHeight { get; set; }
    Property Value
    Type Description
    Single
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Wednesday, October 27, 2021