Handles the cursor for the Buddy HUD. The cursor is used to interact with widgets, simulating a mouse cursor.
More...
|
| void | Refresh (bool isActive, RaycastHit hit, Vector3 point, bool isPressed, bool isPrimaryButtonPressed, Vector2 scrollDelta) |
| | Refreshes the cursor with the new state.
|
| |
| void | Refresh (bool isActive, Transform hit, Vector3 point, bool isPressed, bool isPrimaryButtonPressed, Vector2 scrollDelta) |
| | Refreshes the cursor with the new state.
|
| |
| void | SendHapticImpulse (uint channel, float amplitude, float duration) |
| | Sends a haptic impulse to the cursor. This is only relevant for controllers, as haptic feedback doesn't work with hand tracking for obvious reasons.
|
| |
|
| Action< bool > | OnActiveChanged |
| | Event triggered when the active state of the cursor changes.
|
| |
|
| bool | PressedDown [get] |
| | True on the frame the button was pressed down.
|
| |
| bool | PressedUp [get] |
| | True on the frame the button was released.
|
| |
| bool | IsActive [get] |
| | True if the cursor is active, used to properly handle hover behavior.
|
| |
| Vector3 | Point [get] |
| | The current position of the cursor.
|
| |
| Vector3 | LastPoint [get] |
| | The position of the cursor on the previous frame.
|
| |
| Vector2 | Delta [get] |
| | The difference between the current and last position of the cursor.
|
| |
Handles the cursor for the Buddy HUD. The cursor is used to interact with widgets, simulating a mouse cursor.
◆ Refresh() [1/2]
| void FMAR.UI.CanvasInteractions.CanvasInteractionsCursor.Refresh |
( |
bool | isActive, |
|
|
RaycastHit | hit, |
|
|
Vector3 | point, |
|
|
bool | isPressed, |
|
|
bool | isPrimaryButtonPressed, |
|
|
Vector2 | scrollDelta ) |
|
inline |
Refreshes the cursor with the new state.
- Parameters
-
| isActive | The new active state of the cursor. |
| hit | The raycast hit. |
| point | The new position of the cursor. |
| isPressed | The new pressed state of the cursor. |
| isPrimaryButtonPressed | True if the primary button is pressed. |
| scrollDelta | The new scroll delta of the cursor. |
◆ Refresh() [2/2]
| void FMAR.UI.CanvasInteractions.CanvasInteractionsCursor.Refresh |
( |
bool | isActive, |
|
|
Transform | hit, |
|
|
Vector3 | point, |
|
|
bool | isPressed, |
|
|
bool | isPrimaryButtonPressed, |
|
|
Vector2 | scrollDelta ) |
|
inline |
Refreshes the cursor with the new state.
- Parameters
-
| isActive | The new active state of the cursor. |
| hit | The raycast hit. |
| point | The new position of the cursor. |
| isPressed | The new pressed state of the cursor. |
| isPrimaryButtonPressed | True if the primary button is pressed. |
| scrollDelta | The new scroll delta of the cursor. |
◆ SendHapticImpulse()
| void FMAR.UI.CanvasInteractions.CanvasInteractionsCursor.SendHapticImpulse |
( |
uint | channel, |
|
|
float | amplitude, |
|
|
float | duration ) |
|
inline |
Sends a haptic impulse to the cursor. This is only relevant for controllers, as haptic feedback doesn't work with hand tracking for obvious reasons.
- Parameters
-
| channel | The channel to send the impulse to. |
| amplitude | The amplitude of the impulse. |
| duration | The duration of the impulse. |
◆ OnActiveChanged
| Action<bool> FMAR.UI.CanvasInteractions.CanvasInteractionsCursor.OnActiveChanged |
Event triggered when the active state of the cursor changes.
◆ Delta
| Vector2 FMAR.UI.CanvasInteractions.CanvasInteractionsCursor.Delta |
|
get |
The difference between the current and last position of the cursor.
◆ IsActive
| bool FMAR.UI.CanvasInteractions.CanvasInteractionsCursor.IsActive |
|
get |
True if the cursor is active, used to properly handle hover behavior.
◆ LastPoint
| Vector3 FMAR.UI.CanvasInteractions.CanvasInteractionsCursor.LastPoint |
|
get |
The position of the cursor on the previous frame.
◆ Point
| Vector3 FMAR.UI.CanvasInteractions.CanvasInteractionsCursor.Point |
|
get |
The current position of the cursor.
◆ PressedDown
| bool FMAR.UI.CanvasInteractions.CanvasInteractionsCursor.PressedDown |
|
get |
True on the frame the button was pressed down.
◆ PressedUp
| bool FMAR.UI.CanvasInteractions.CanvasInteractionsCursor.PressedUp |
|
get |
True on the frame the button was released.
◆ HapticImpulseTriggered
| Action<uint, float, float> FMAR.UI.CanvasInteractions.CanvasInteractionsCursor.HapticImpulseTriggered |
Event triggered when a haptic impulse occurs.
The documentation for this class was generated from the following file: