docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct VisionOSSpatialPointerEvent

    Struct to represent data for a visionOS spatial pointer event.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.VisionOS.InputDevices
    Assembly: Unity.XR.VisionOS.dll
    Syntax
    public struct VisionOSSpatialPointerEvent

    Fields

    inputDevicePosition

    The input device position of the spatial pointer event.

    Declaration
    public Vector3 inputDevicePosition
    Field Value
    Type Description
    Vector3

    inputDeviceRotation

    The input device rotation of the spatial pointer event.

    Declaration
    public Quaternion inputDeviceRotation
    Field Value
    Type Description
    Quaternion

    interactionId

    The interaction Id of the spatial pointer event.

    Declaration
    public int interactionId
    Field Value
    Type Description
    int

    kind

    The spatial pointer kind of the spatial pointer event.

    Declaration
    public VisionOSSpatialPointerKind kind
    Field Value
    Type Description
    VisionOSSpatialPointerKind

    modifierKeys

    The modifier key states of the spatial pointer event.

    Declaration
    public VisionOSSpatialPointerModifierKeys modifierKeys
    Field Value
    Type Description
    VisionOSSpatialPointerModifierKeys

    phase

    The pointer phase of the spatial pointer event.

    Declaration
    public VisionOSSpatialPointerPhase phase
    Field Value
    Type Description
    VisionOSSpatialPointerPhase

    rayDirection

    The ray direction of the spatial pointer event.

    Declaration
    public Vector3 rayDirection
    Field Value
    Type Description
    Vector3

    rayOrigin

    The ray origin of the spatial pointer event.

    Declaration
    public Vector3 rayOrigin
    Field Value
    Type Description
    Vector3
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)