Class KmaxPointer
- Namespace
- KmaxXR
- Assembly
- Kmax.XR.dll
public abstract class KmaxPointer : MonoBehaviour
- Inheritance
-
KmaxPointer
- Derived
-
Constructors
KmaxPointer()
Fields
eventCamera
protected Camera eventCamera
Field Value
- Camera
lastpress
Field Value
- bool
press
Field Value
- bool
raycastResultCache
protected List<RaycastResult> raycastResultCache
Field Value
- List<RaycastResult>
Properties
Enable
public static bool Enable { get; }
Property Value
- bool
EndpointPose
public abstract Pose EndpointPose { get; }
Property Value
- Pose
GrabObject
public GameObject GrabObject { get; set; }
Property Value
- GameObject
Hit3D
public bool Hit3D { get; protected set; }
Property Value
- bool
Id
public abstract int Id { get; }
Property Value
- int
Pointers
public static IEnumerable<KmaxPointer> Pointers { get; }
Property Value
- IEnumerable<KmaxPointer>
ScreenPosition
public abstract Vector2 ScreenPosition { get; }
Property Value
- Vector2
State
public PointerEventData.FramePressState State { get; }
Property Value
- FramePressState
Methods
FindFirstRaycast(List<RaycastResult>)
protected static RaycastResult FindFirstRaycast(List<RaycastResult> candidates)
Parameters
candidates
List<RaycastResult>
Returns
- RaycastResult
OnDisable()
protected void OnDisable()
OnEnable()
protected void OnEnable()
PointerById(int)
public static KmaxPointer PointerById(int id)
Parameters
id
int
Returns
- KmaxPointer
Raycast(PointerEventData)
public abstract void Raycast(PointerEventData eventData)
Parameters
eventData
PointerEventData
UpdateState()
public abstract void UpdateState()