- About XR
- XR Unity SDK
- XR SDK Release Notes
- Version:1.0.3
- Version:1.0.2
- Version:1.0.1
- Version:1.0.0
- Version:0.9.59
- Version:0.9.58
- Version:0.9.57
- Version:0.9.56
- Version:0.9.55
- Version:0.9.54
- Version:0.9.53
- Version:0.9.52
- Version:0.9.51
- Version:0.9.38
- Version:0.9.37
- Version:0.9.34
- Version:0.9.33
- Version:0.9.32
- Version:0.9.31
- Version:0.9.30
- Version:0.9.24
- Version:0.9.23 Beta
Component - XRCTLRaycaster¶
This script provides Raycast position and direction for XRInputModule.
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.