- 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 - Hello XR¶
Introduction¶
In this sample, we will demonstrate our VR features with our SDK including controllers, Hand Motion / Gesture, Headset 6DoF pose.
This sample have some features as below:
Hand click/drag UI
Hand grab object
Controller click/drag UI
Hand/Controller Teleport to anywhere in scene
IME Keyboard(headset only)
How to Use Handler¶
Handler description of use.
Handler - Hand
Teleport
Click
Drag
Grab
Controller
Teleport
Click&Drag
Note
For more information about Handler, please visit Sample - Handler.
How to Use Tracker¶
The IK feature is not ready. PunchGame.cs is disable now, we will open it when the feature is ready.
We provide the raw data of Tracker and IK for develpoer to use, and it will show the sample in PunchGame.cs.
Tracker need to pair by the app XRSPACE, you can vibrate the tracker by the app after paired.
And the pair sequence is: Right Foot → Left Foor → Right Wrist → Left Wrist → Right Arm → Left Arm
If user want to know which part has been paired with tracker:
We provide the vibrate tracker feature in sample HelloXR.
Call API in app that you build.
XRInputManager.Instance.Vibrate(XRDeviceType type, int duration = 1000)
How to Use IME¶
IME Keyboard
Note
We provide API for developer to implement their own keyboard. For more information about IME, please visit Sample - IME.
How to build a new scene¶
Prefabs and Scripts in the sample.
If user want to create scene by self, the prefab XRManager must to be add in scene.
And if user want to use controller or hand in their scene, the prefab XRHandler need to be add in scene.
Using Prefab - XRManager¶
Main feature: VR Render
A singleton that exposes the VR configuration and status to Unity. Perform head tracking and stereo rendering.
Using two virtual cameras to simulate the field of view by each eye, the left and right views are separated on the display.
The XR-SDK dose Lens Distortion Correction (LDC) and Chromatic Aberration Correction (CAC) to eliminate the problem of lens distortion.
Using Prefab - XRHandler¶
Main feature: Hands and controllers pose tracker
XRHandler can automatically detects hand or controller status and event callback.
Note
For more information about IME, please visit Sample - Handler.