Table of Contents

Enum ExternalDeviceFrameSource.DeviceOriginType

Namespace
easyar
Assembly
EasyAR.Sense.dll

Device origin type.

Session origin is used to set the transform reference point in the SessionOrigin center mode, and 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 similar to XR.CoreUtils.XROrigin, with the render camera as its child node. Users can move the origin in the scene without losing the local motion relationship defined by the camera-origin pair. EasyAR will use the camera-origin pair to handle the target center mode, which is especially useful when running Mega, as Mega defines the real-world coordinate system of the entire Earth, and the camera-origin pair typically defines the VIO coordinate system relative to a starting point.

protected enum ExternalDeviceFrameSource.DeviceOriginType

Fields

None = 0

The 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 as it only supports a limited number of center modes, and the movement of objects will be restricted accordingly. Application developers must be very careful about how they place virtual objects, because the EasyAR nodes and objects will always move when using this class. All objects placed in the Unity world coordinate system will never be displayed in the correct position under any configuration.

Custom = 1

The device SDK defines its own origin.

XROrigin = 2

The device SDK uses Unity.XR.CoreUtils.XROrigin as the origin.