docs.unity.cn
    Show / Hide Table of Contents

    Enum MatchOrientation

    The option of which object's orientation in the rig will be matched with the destination after teleporting.

    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    public enum MatchOrientation : int

    Fields

    Name Description Value
    WorldSpaceUp

    After teleporting the XR Rig will be positioned such that its up vector matches world space up.

    0
    TargetUp

    After teleporting the XR Rig will be positioned such that its up vector matches target up.

    1
    TargetUpAndForward

    After teleporting the XR Rig will be positioned such that its up vector matches target up and forward.

    2
    None

    After teleporting the XR Rig will not attempt to match any orientation.

    3
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Wednesday, October 27, 2021