- 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
API - XREvent¶
Enum¶
public enum XRStatus
Description
Indicates the state of event.
None |
0 |
INITIALIZE_FAILED |
1 |
DEVICE_CONNECTED |
2 |
DEVICE_DISCONNECTED |
3 |
LOST_TRACKING |
4 |
VR_LESS_FEATURE_COUNT |
5 |
VR_LOW_LIGHT |
6 |
VR_BRIGHT_LIGHT |
7 |
VR_CAMERA_CALIBRATION |
8 |
VR_UNKNOWN |
9 |
Event¶
public static event Action OnBeginVR
Description
Trigger when application starts/resumes and VR mode’s ready, the system will start stereo rendering.
public static event Action OnBoundaryCollision
Description
Trigger when boundary collision is detected.
public static event Action<bool> OnBoundaryCollisionChange
Description
Trigger when the boundary collision is changed.
True
: Trigger when the boundary collision is detected.
False
: Trigger when the boundary collision is removed.
public static event Action<XRStatus> OnCameraBlock
Description
Trigger when 6GoF stop working.
public static event Action<XRStatus> OnCameraUnBlock
Description
Trigger when OnCameraBlock is release.
public static event Action<XRDeviceType, XRStatus> **OnDeviceStateChange*
Description
Trigger when device state changed.
public static event Action OnEndVR
Description
Trigger when VR mode’s pause, stop stereo rendering.
public static event Action OnRecenterTrackingBefore
Description
Trigger before device recenter.
public static event Action OnRecenterTrackingFinish
Description
Trigger when device recenter finish.
public static event Action<XRStatus> OnSDKError
Description
Trigger when initialized failed.
public static event Action<bool> OnSeethroughVisibilityChange
Description
Trigger when pass in/out see through.
public static event Action OnShutdown
Description
Trigger when VR mode’s stop.
public static event Action OnSubmitFrame
Description
Triggrt when submit stereo right and left image to display.
public static event Action<bool> OnSystemMenuVisibilityChange
Description
Trigger when menu open/close.