Class InputDevicePointer
A concrete implementation of IVRPointer designed for use with IVRInputDevice.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Liminal.SDK.VR.Pointers
Assembly: Liminal.SDK.dll
Syntax
public class InputDevicePointer : BasePointer, IVRPointer
Constructors
| Improve this Doc View SourceInputDevicePointer(IVRInputDevice)
Declaration
public InputDevicePointer(IVRInputDevice inputDevice)
Parameters
Type | Name | Description |
---|---|---|
IVRInputDevice | inputDevice |
Properties
| Improve this Doc View SourceInputDevice
Gets the IVRInputDevice the pointer is bound to.
Declaration
public IVRInputDevice InputDevice { get; }
Property Value
Type | Description |
---|---|
IVRInputDevice |
Methods
| Improve this Doc View SourceGetButtonDown()
[Internal use] Indicates if the primary interaction button was pressed.
Declaration
public override bool GetButtonDown()
Returns
Type | Description |
---|---|
System.Boolean | A boolean indicating if the primary interaction button was pressed. |
Overrides
| Improve this Doc View SourceGetButtonUp()
[Internal use] Indicates if the primary interaction button was released.
Declaration
public override bool GetButtonUp()
Returns
Type | Description |
---|---|
System.Boolean | A boolean indicating if the primary interaction button was released. |
Overrides
| Improve this Doc View SourceOnPointerEnter(GameObject)
[Internal use] Executed when the pointer hovers over an interactable GameObject.
Declaration
public override void OnPointerEnter(GameObject target)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | target | The GameObject the pointer the pointer entered. |
Overrides
| Improve this Doc View SourceOnPointerExit(GameObject)
[Internal use] Executed when the pointer leaves an interactable GameObject after OnPointerEnter(GameObject) has been executed.
Declaration
public override void OnPointerExit(GameObject target)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | target | The GameObject the pointer the pointer exited. |