XRSPACE Developer Console

Component - XRInputModule

With this component, it will find the script which inherit XRBaseRaycaster, and get the RaycastResult from it.

User can inherit XRBaseRaycaster to do the things, just like Pointer and Drag Event in Unity standard alone below.

The RaycastResult must be set when the script inherit the XRBaseRaycaster, and there are some value provide for developers to set:

  • IsPress :

    • If user set this true, it means OnPointerDown.

    • If user set this false, it means OnPointerUp.

  • IsDrag:

    • If user set this true, it means OnBeginDrag.

    • If user set this false, it means OnEndDrag.


../_images/UnityDragEventOrder.png