docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetSpace

    SetSpace(XrReferenceSpaceType, Vector3, Quaternion, XrSpaceLocationFlags)

    Set the reference space to use at Runtime.

    Declaration
    public static extern void SetSpace(XrReferenceSpaceType referenceSpace, Vector3 position, Quaternion orientation, XrSpaceLocationFlags locationFlags)
    Parameters
    Type Name Description
    XrReferenceSpaceType referenceSpace

    The type of reference space being set.

    Vector3 position

    Position of the space.

    Quaternion orientation

    Orientation of the space.

    XrSpaceLocationFlags locationFlags

    XrSpaceLocationFlags for the space.

    SetSpace(ulong, Vector3, Quaternion, XrSpaceLocationFlags)

    Set the reference space to use for input actions.

    Declaration
    public static extern void SetSpace(ulong actionHandle, Vector3 position, Quaternion orientation, XrSpaceLocationFlags locationFlags)
    Parameters
    Type Name Description
    ulong actionHandle

    Handle to the input action.

    Vector3 position

    Position of the space.

    Quaternion orientation

    Orientation of the space.

    XrSpaceLocationFlags locationFlags

    XrSpaceLocationFlags for the space.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, November 1, 2023