XRSPACE Developer Console

Component - XRCTLRaycaster

This script provides Raycast position and direction for XRInputModule.

../_images/Component-XRCTLRaycaster.png

There are some options for developers to set:

UseRaycaster: This option is to decide whether to cast a ray in runtime.

  • Priority

    User can set the priority of each raycaster. Set -1 will ignore raycaster.

    • UIRaycaster

    • ObjectRaycaster

    • Teleport

  • UI

    • UIRaycasterMask: Decide which layer will be hit.

    • EventCamera: The camera to handle the UI event.

    • Physicaycaster: The physic raycaster for hand.

    • IgnorePhysicsRaycaster: If set false, 3D object will not recieve IEventSystemHandler.

    • FocusDistance: The distance of Focus state.

    • DragTime: The time trigger drag.

  • Object

    • ObjectRaycaster Mask: Decide which layer will be hit.

    • RaycsatMaxDistance: The raycaster distance.

  • Teleport

    • ValidMask: Decide which layer of terrian can teleport.

    • InValidMask: Decide which layer of terrain can’t teleport.

    • BlockMask: Teleport will be blocked by the layer of block mask.

    • ObstacleMask: Decide which layer is obstacle.