Struct TrackedDeviceModel.ImplementationData
Namespace: UnityEngine.XR.Interaction.Toolkit.UI
Syntax
public struct ImplementationData
Properties
draggedGameObject
The gameobject currently being dragged if any. See
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
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
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
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
Declaration
public RaycastResult pressedRaycast { get; set; }
Property Value
Type | Description |
---|---|
RaycastResult |
pressedTime
Used to cache the last time this button was pressed. See
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()