docs.unity.cn
    Show / Hide Table of Contents

    Enum MatchOrientation

    The option of which object's orientation in the rig Unity matches with the destination after teleporting.

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

    Fields

    Name Description Value
    WorldSpaceUp

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


    0
    TargetUp

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


    1
    TargetUpAndForward

    After teleporting the XR Origin will be positioned such that its up and forward vectors match target up and forward, respectively.


    2
    None

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


    3
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, July 24, 2023