Interface IVRPointer
An interface representing a pointer that can be used by VR input devices.
Namespace: Liminal.SDK.VR.Pointers
Assembly: Liminal.SDK.dll
Syntax
public interface IVRPointer
Properties
| Improve this Doc View SourceCurrentRaycastResult
Gets the current input UnityEngine.EventSystems.RaycastResult.
Declaration
RaycastResult CurrentRaycastResult { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.EventSystems.RaycastResult |
DeviceComponent
Gets the IVRDeviceComponent the pointer is bound to.
Declaration
IVRDeviceComponent DeviceComponent { get; }
Property Value
Type | Description |
---|---|
IVRDeviceComponent |
IsActive
Indicates if the pointer is currently active.
Declaration
bool IsActive { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Transform
Gets the transform for the origin of the pointer ray.
Declaration
Transform Transform { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Transform |
Methods
| Improve this Doc View SourceActivate()
Activates the pointer.
Declaration
void Activate()
Deactivate()
Deactivates the pointer.
Declaration
void Deactivate()
GetButtonDown()
[Internal use] Indicates if the primary interaction button was pressed.
Declaration
bool GetButtonDown()
Returns
Type | Description |
---|---|
System.Boolean | A boolean indicating if the primary interaction button was pressed. |
GetButtonUp()
[Internal use] Indicates if the primary interaction button was released.
Declaration
bool GetButtonUp()
Returns
Type | Description |
---|---|
System.Boolean | A boolean indicating if the primary interaction button was released. |
OnPointerEnter(GameObject)
[Internal use] Executed when the pointer hovers over an interactable GameObject.
Declaration
void OnPointerEnter(GameObject target)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | target | The GameObject the pointer the pointer entered. |
OnPointerExit(GameObject)
[Internal use] Executed when the pointer leaves an interactable GameObject after OnPointerEnter(GameObject) has been executed.
Declaration
void OnPointerExit(GameObject target)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | target | The GameObject the pointer the pointer exited. |
Events
| Improve this Doc View SourceActiveStateChanged
Raised when the active state of the pointer has changed.
Declaration
event PointerActiveStateChanged ActiveStateChanged
Event Type
Type | Description |
---|---|
PointerActiveStateChanged |