- 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
Sample - Handler¶
Contents
Introduction¶
Our System can identify HandMotion’s pose and action as below:
Note
Direction
The direction of raycaster is shoulder to middle finger’s knuckle, user can control the direction of raycaster by move hand in scene to select the UI or Object.
Method
There are two methods for user to interact with gameobject as below:
Click: User can use
IndexDown/PointerDown
to click or drag the UI, and Teleport to the position where is raycaster direction point.Drag: User can use
Grab
to take the Gameobject.
Handler status change:
Using Scripts¶
ControllerBehavior.cs
This script handle the beamrender and definate the behaviour when press the button on controller.
Note
More detail description, please vivst Component - ControllerBehaviour.
XRCTLRaycaster.cs
This script handle the priority of UI, object and teleport raycaster.
Note
More detail description, please vivst Component - XRCTLRaycaster and API - XRCTLRaycaster.
HandBehavior.cs
This script handle the beamrender and definte the behavior when change gesture or actiongesture.
Note
More detail description, please vivst Component - HandBehaviour.
XRHandRaycaster.cs
This script handle the priority of UI, object and teleport raycaster.
Note
More detail description, please vivst Component - XRHandRaycaster and API - XRHandRaycaster.
TeleportEffectControl.cs
This script handle the teleport effect of controller and hand.
Note
More detail description, please vivst Component - TeleportEffectControl.