Enum ExternalDeviceFrameSource.DeviceOriginType
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
Device origin type.
session origin is used to set the transform reference point in SessionOrigin center mode, and to transform the camera-origin pair together in other center modes. If your SDK is designed based on the Unity XR framework, you will be familiar with XR.CoreUtils.XROrigin. Origin is something similar to XR.CoreUtils.XROrigin, and the rendering camera is its child node. Users can move origin in the scene without losing the local motion relationship defined by the camera-origin pair. EasyAR uses the camera-origin pair to handle target center mode. This is especially useful when running Mega, because Mega defines a real-world coordinate system for the whole Earth, while the camera-origin pair usually defines a VIO coordinate system relative to a startup point.
protected enum ExternalDeviceFrameSource.DeviceOriginType
Fields
None = 0The device SDK does not define an origin. In this case, the origin will be automatically selected or created from the scene, but it will not move.
You will lose some flexibility, especially because only limited center modes can be supported and the way objects move will also be restricted. Application developers must be very careful about how they place virtual objects, because when using this class, EasyAR nodes and objects will always move. Any object placed under the Unity world coordinate system can never be displayed at the correct position under any configuration.
Custom = 1The device SDK defines its own origin.
XROrigin = 2The device SDK uses Unity.XR.CoreUtils.XROrigin as the origin.