ARCoreARFoundationFrameSource Class¶
Description¶
A custom frame source which connects AR Foundation ARCore output to EasyAR input in the scene, providing AR Foundation support using custom camera feature of EasyAR Sense.
This frame source is one type of motion tracking device, and will output motion data in a ARSession .
AR Foundation is required to use this frame source, you need to setup AR Foundation according to official documents.
Fields¶
OptimizeConfigurationForTracking¶
- C#
public bool OptimizeConfigurationForTracking
The default configuration used by AR Foundation is not optimal for EasyAR Mega. This option allows for runtime optimization of ARCameraManager.currentConfiguration.
Warning: Some phones, such as the Xiaomi Mi 10, have inherent bugs that prevent image acquisition after configuration modifications. EasyAR will be unable to function in such cases. When using this option, you need to avoid similar devices or implement suitable handling measures.
If the image size is modified during the FrameRecorder recording process, the recording data will stop updating. You will need to stop and restart the recording.
Properties¶
enabled¶
- C#
public bool enabled { get; set; }
Start/Stop send image stream to EasyAR when ARSession is running. Sending will start only when MonoBehaviour .enabled is true after session started.
Events¶
ConfigurationChoosed¶
- C#
public event Action ConfigurationChoosed
ARCameraManager.currentConfiguration choosed event when ARCoreARFoundationFrameSource.OptimizeConfigurationForTracking is true.