Class ARCoreARFoundationFrameSource
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
In the scene, connect the AR Foundation's ARCore output to the custom frame source input of EasyAR. Provide AR Foundation support through the custom camera feature of EasyAR Sense.
This frame source is a motion tracking device that outputs motion data in ARSession.
To use this frame source, ``AR Foundation`` is required. You need to configure AR Foundation according to the official documentation.
public class ARCoreARFoundationFrameSource : ARFoundationFrameSource
- Inheritance
-
ARCoreARFoundationFrameSource
- Inherited Members
Fields
OptimizeConfigurationForTracking
The configuration used by AR Foundation by default is not optimal for EasyAR Mega; this option can optimize ARCameraManager.currentConfiguration at runtime.
Warning: Some phones themselves (such as Xiaomi 10) have bugs that prevent image acquisition after configuration changes, making EasyAR unusable. When using this option, you need to avoid such phones or handle them appropriately.
If the image size is changed during recording with FrameRecorder, the recording data will stop updating and needs to be closed and re-recorded.
[Tooltip("The default configuration used by AR Foundation is not optimal for EasyAR Mega. This option allows for runtime optimization of ARCameraManager.currentConfiguration.")]
[SerializeField]
[HideInInspector]
public bool OptimizeConfigurationForTracking
Field Value
Properties
IsAvailable
Provided only when creating a new frame source. It is only accessed during the Assemble() process.
Whether the current frame source is available.
If the value is null, CheckAvailability() will be called, and the value will be obtained after the Coroutine ends.
protected override Optional<bool> IsAvailable { get; }
Property Value
Events
ConfigurationChoosed
The event when OptimizeConfigurationForTracking is true, selecting ARCameraManager.currentConfiguration.
public event Action ConfigurationChoosed