docs.unity.cn
    Show / Hide Table of Contents

    Struct GestureTransformationUtility.Placement

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

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    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 { readonly 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 { readonly get; set; }
    Property Value
    Type Description
    Boolean
    See Also
    placementPosition

    hasPlane

    true if this Placement has a placementPlane, otherwise false.

    Declaration
    public bool hasPlane { readonly 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 { readonly get; set; }
    Property Value
    Type Description
    Vector3
    See Also
    hasHoveringPosition

    placementPlane

    The ARPlane that the object is being placed on.

    Declaration
    public ARPlane placementPlane { readonly 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 { readonly get; set; }
    Property Value
    Type Description
    Vector3
    See Also
    hasPlacementPosition

    placementRotation

    The resulting rotation that the object should have.

    Declaration
    public Quaternion placementRotation { readonly 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 { readonly get; set; }
    Property Value
    Type Description
    Single
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, May 5, 2023