- 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 - XRDeviceCallBack¶
With this component user can get all kinds of input callback.
If device choose HANDLER_RIGHT, trigger type choose Hand.
If device choose HANDLER_RIGHT, trigger type choose Controller.
If device choose HEADSET.
There are some options for developers to set:
Device: Choose which input to use.
TriggerType
Controller
TriggerButton: The button that the developer wants to trigger after pressing.
OnButtonDown: Provide developers to set button event when the button press.
OnButton: Provide developers to set button event during the button press.
OnButtonUp: Provide developers to set button event when the button up.
Hand
OnGesture: Provide developers to get hand gesture callback.
Headset
OnGazeStart(): Start calculating Gaze time, it’s familiar with OnButtonDown().
OnGaze(): During calculating Gaze time and return duration percentage, it’s familiar with OnButton().
OnGazeEnd(): Stop calculating Gaze time, it’s familiar with OnButtonUp().