Class BasePointer
An abstract base implementation of IVRPointer.
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 abstract class BasePointer : IVRPointer
Constructors
| Improve this Doc View SourceBasePointer(IVRDeviceComponent)
Declaration
public BasePointer(IVRDeviceComponent deviceComponent)
Parameters
Type | Name | Description |
---|---|---|
IVRDeviceComponent | deviceComponent |
Properties
| Improve this Doc View SourceCurrentRaycastResult
Gets the current input UnityEngine.EventSystems.RaycastResult.
Declaration
public RaycastResult CurrentRaycastResult { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.EventSystems.RaycastResult |
DeviceComponent
Gets the IVRDeviceComponent the pointer is bound to.
Declaration
public IVRDeviceComponent DeviceComponent { get; }
Property Value
Type | Description |
---|---|
IVRDeviceComponent |
IsActive
Indicates if the pointer is currently active.
Declaration
public bool IsActive { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Transform
Gets the transform for the origin of the pointer ray.
Declaration
public Transform Transform { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Transform |
Methods
| Improve this Doc View SourceActivate()
Activates the pointer.
Declaration
public void Activate()
Deactivate()
Deactivates the pointer.
Declaration
public void Deactivate()
GetButtonDown()
Declaration
public abstract bool GetButtonDown()
Returns
Type | Description |
---|---|
System.Boolean |
GetButtonUp()
Declaration
public abstract bool GetButtonUp()
Returns
Type | Description |
---|---|
System.Boolean |
OnPointerEnter(GameObject)
Declaration
public abstract void OnPointerEnter(GameObject target)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | target |
OnPointerExit(GameObject)
Declaration
public abstract void OnPointerExit(GameObject target)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | target |
Events
| Improve this Doc View SourceActiveStateChanged
Raised when the active state of the pointer has changed.
Declaration
public event PointerActiveStateChanged ActiveStateChanged
Event Type
Type | Description |
---|---|
PointerActiveStateChanged |