Table of Contents

Class ARCoreARFoundationFrameSource

Namespace
easyar
Assembly
EasyAR.Sense.dll

A custom frame source that connects AR Foundation ARCore output to EasyAR input in the scene. It provides AR Foundation support through the custom camera feature of EasyAR Sense.

This frame source is a motion tracking device and 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. After modifying the configuration, images cannot be obtained and EasyAR cannot be used. When using this option, you need to avoid similar phones or handle them properly.

If the image size is modified during FrameRecorder recording, recorded data will stop updating and recording must be restarted after closing.

[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

Properties

IsAvailable

Provided only when creating a new frame source. It will be accessed only during Assemble().

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; }

Events

ConfigurationChoosed

Event for selecting ARCameraManager.currentConfiguration when OptimizeConfigurationForTracking is true.

public event Action ConfigurationChoosed