ExternalDeviceFrameSource.DeviceOriginType Enum¶
Description¶
Device origin type.
The session origin is used to setup transform base in ARSession.ARCenterMode.SessionOrigin center mode and to transform camera-origin pair together in other center modes.If your SDK is based on Untiy XR framework, you would be familiar with XR.CoreUtils.XROrigin. Origin is something similar to XR.CoreUtils.XROrigin, it holds the rendering camera as its child.Users can move origin in the scene without losing local motion defined by camera-origin pair. EasyAR will make use of camera-origin pair to handle target center mode, especially useful when Mega is running which defines the real-world coordinate of the planet, while camera-origin pair usually defines VIO coordinate relative to some start point.
Constant |
Value |
Description |
---|---|---|
None |
0 |
Device SDK does not define origin. XROriginController will be created, but it will never move. You will lose flexibility especially how the object moves and support less center mode.App developers have to be careful about where their virtual objects are because EasyAR objects will always move when using this class. Objects put directly under Unity world coordinates will never show in the right place in any configuration. |
Custom |
1 |
Device SDK define its own origin. |
XROrigin |
2 |
Device SDK use Unity.XR.CoreUtils.XROrigin as origin. |