Class ARCoreARFoundationFrameSource
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
In the scene, connect the ARCore output of AR Foundation to the custom frame source of EasyAR input. Provide AR Foundation support through the custom camera function of EasyAR Sense.
This frame source is a motion tracking device that outputs motion data in
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
AR Foundation's default configuration is not optimal for EasyAR Mega. This option can optimize ARCameraManager.currentConfiguration at runtime.
Warning: Some mobile phones (such as Xiaomi 10) have bugs. After modifying the configuration, no image can be obtained, and EasyAR cannot be used. When using this option, you need to avoid such phones or handle them reasonably.
If the image size is modified during the recording process of, the recording data will stop updating. You need to close it and record again.
[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
Only provided when creating a new frame source. It will only be accessed during the process.
Whether the current frame source is available.
If the value is null, will be called, and the value will be obtained after the ends.
protected override Optional<bool> IsAvailable { get; }
Property Value
Events
ConfigurationChoosed
OptimizeConfigurationForTrackingWhen it is true, the event selected by ARCameraManager.currentConfiguration.
public event Action ConfigurationChoosed