VIOCameraDeviceUnion Class¶
Description¶
MonoBehaviour which controls VIO camera device ( MotionTrackerCameraDevice , ARKitCameraDevice or ARCoreCameraDevice ) in the scene, providing a few extensions in the Unity environment. Use VIOCameraDeviceUnion.Device directly when necessary.
Enums¶
public enum VIOCameraDeviceUnion.DeviceChooseStrategy |
Strategy of choosing VIO device. |
Classes¶
public class VIOCameraDeviceUnion.DeviceUnion |
VIO device Union. |
MonoBehaviour Messages¶
protected override void OnEnable() |
protected override void Start() |
protected override void OnDisable() |
protected virtual void OnDestroy() |
Fields¶
DeviceStrategy¶
- C#
public VIOCameraDeviceUnion.DeviceChooseStrategy DeviceStrategy
Strategy of choosing VIO device.
DesiredMotionTrackerParameters¶
- C#
public VIOCameraDeviceUnion.MotionTrackerCameraDeviceParameters DesiredMotionTrackerParameters
Desired motion tracker parameters, used only when VIOCameraDeviceUnion.Device start. Effective only when MotionTrackerCameraDevice is used.
UpdateCalibrationOnStart¶
- C#
public bool UpdateCalibrationOnStart
Whether to update calibration data from server on VIOCameraDeviceUnion.Start .
Properties¶
Device¶
- C#
public VIOCameraDeviceUnion.DeviceUnion Device { get; }
EasyAR Sense API (Union). Accessible between VIOCameraDeviceUnion.DeviceCreated and VIOCameraDeviceUnion.DeviceClosed event if available.
Events¶
DeviceCreated¶
- C#
public event Action DeviceCreated
Event when VIOCameraDeviceUnion.Device created.
DeviceOpened¶
- C#
public event Action DeviceOpened
Event when VIOCameraDeviceUnion.Device opened.
DeviceClosed¶
- C#
public event Action DeviceClosed
Event when VIOCameraDeviceUnion.Device closed.
Methods¶
HitTestAgainstHorizontalPlane¶
Performs ray cast from the user’s device in the direction of given screen point. Intersections with horizontal plane is detected in real time in the current field of view,and return the 3D point nearest to ray on horizontal plane. pointInView should be normalized to [0, 1]^2.
HitTestAgainstPointCloud¶
Perform hit test against the point cloud and return the nearest 3D point. pointInView should be normalized to [0, 1]^2.
Open¶
- C#
public override void Open()
Open camera
Close¶
- C#
public override void Close()
Close camera