SDK Samples package provides sample scenes for developers for common VR-specific features such as XR ActionBased, XR DeviceBased, character controller, the acquisition of user account of QIYU device.
In ButtonTest.cs, we use official UnityXR APIs to realize the controller related information, including the call of APIs such as device velocity, device acceleration and buttons:
The example scene of QiyuOverlay shows how to use Overlay and Underlay to synthesize the composite layer with high quality. For detailed information about the settings of the composite layer, please refer to QIYUCompositorLayer.
When loading the sample scene, you can see multiple layer renderings in front of the camera, including overlay, underlay, OES and Default rendering results.
We provide Earth.cs and OESHelper.cs for developers to refer to the earth rotation and OES texture. In addition, QiyuOverlay file provides an example about how to set in inspector.
Sometimes the screen may flash white due to a sudden change in the camera rendering during the on-off screen or scene switching.This script provides the FadeIn effect to solve this issue. Please hang the script on the Main Camera if needed.