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 is also used to transform the camera-origin pair simultaneously 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 analogous to XR.CoreUtils.XROrigin, where the rendering camera is its child node. Users can move the origin within the scene without losing the local motion relationship defined by the camera-origin pair. EasyAR utilizes the camera-origin pair to handle target center mode, which is particularly useful when running Mega, as Mega defines the real-world coordinate system for the entire Earth, while the camera-origin pair typically defines the VIO coordinate system relative to a starting 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 will not move.
You will lose some flexibility, especially in only supporting limited center modes, and the way objects move will be constrained. App developers must be very careful about how they place virtual objects, because when using this class, EasyAR nodes and objects will always move. Objects placed in the Unity world coordinate system will never display in 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.