Struct TrackedDeviceModel.ImplementationData | XR Interaction Toolkit | 0.9.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Struct TrackedDeviceModel.ImplementationData

    Namespace: UnityEngine.XR.Interaction.Toolkit.UI
    Syntax
    public struct ImplementationData

    Properties

    draggedGameObject

    The gameobject currently being dragged if any. See for more details.

    Declaration
    public GameObject draggedGameObject { get; set; }
    Property Value
    Type Description
    GameObject

    hoverTargets

    This tracks the current GUI targets being hovered over. Syncs up to .

    Declaration
    public List<GameObject> hoverTargets { get; set; }
    Property Value
    Type Description
    List<GameObject>

    isDragging

    Used to cache whether or not the current mouse button is being dragged. See for more details.

    Declaration
    public bool isDragging { get; set; }
    Property Value
    Type Description
    Boolean

    lastFrameRaycast

    The last raycast done for this model.

    Declaration
    public RaycastResult lastFrameRaycast { get; set; }
    Property Value
    Type Description
    RaycastResult

    lastFrameRaycastResultPositionInLine

    The index within the list of raycast points that the lastFrameRaycast refers to.

    Declaration
    public int lastFrameRaycastResultPositionInLine { get; set; }
    Property Value
    Type Description
    Int32

    pointerTarget

    Tracks the current enter/exit target being hovered over at any given moment. Syncs up to .

    Declaration
    public GameObject pointerTarget { get; set; }
    Property Value
    Type Description
    GameObject

    pressedGameObject

    The last gameobject pressed on that can handle press or click events. See for more details.

    Declaration
    public GameObject pressedGameObject { get; set; }
    Property Value
    Type Description
    GameObject

    pressedGameObjectRaw

    The last gameobject pressed on regardless of whether it can handle events or not. See for more details.

    Declaration
    public GameObject pressedGameObjectRaw { get; set; }
    Property Value
    Type Description
    GameObject

    pressedPosition

    The position on the screen that this button was last pressed. In the same scale as UnityEngine.XR.Interaction.Toolkit.UI.MouseModel.position, and caches the same value as .

    Declaration
    public Vector2 pressedPosition { get; set; }
    Property Value
    Type Description
    Vector2

    pressedRaycast

    The Raycast data from the time it was pressed. See for more details.

    Declaration
    public RaycastResult pressedRaycast { get; set; }
    Property Value
    Type Description
    RaycastResult

    pressedTime

    Used to cache the last time this button was pressed. See for more details.

    Declaration
    public float pressedTime { get; set; }
    Property Value
    Type Description
    Single

    Methods

    Reset()

    Resets this object to it's default, unused state.

    Declaration
    public void Reset()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023