docs.unity.cn
    Show / Hide Table of Contents

    Enum XRDeviceSimulator.Space

    The coordinate space in which to operate.

    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation
    Syntax
    public enum Space

    Fields

    Name Description Value
    Local

    Applies translations of a controller or HMD relative to its own coordinate space, considering its own rotations. Will translate a controller relative to itself, independent of the camera.

    Parent

    Applies translations of a controller or HMD relative to its parent. If the object does not have a parent, meaning it is a root object, the parent coordinate space is the same as the world coordinate space. This is the same as Local but without considering its own rotations.

    Screen

    Applies translations of a controller or HMD relative to the screen. Will translate a controller relative to the camera, independent of the controller's orientation.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, August 12, 2022
    Terms of use