EasyARSettings Class

Description

EasyAR Sense Unity Plugin settings.


Enums

public enum EasyARSettings.ARCoreType

ARCore SDK configuration.

public enum EasyARSettings.AREngineType

AREngine SDK configuration.


Classes

public class EasyARSettings.TargetGizmoConfig

Gizmos configuration for target.

public class EasyARSettings.Permission

Configuration for AndroidManifest.


Fields

LicenseKey

C#

public string LicenseKey

EasyAR Sense License Key. Used for validation of EasyAR Sense functions. Please visit https://www.easyar.com for more details.

InitializeOnStartup

C#

public bool InitializeOnStartup

Initialize EasyAR Sense on startup. EasyAR initialize does not result extra resource usages, so usually you can keep this option on.

Permissions

C#

public EasyARSettings.Permission Permissions

Configuration for application permissions. Permissions must be turned on for the feature in use.

GizmoConfig

C#

public EasyARSettings.TargetGizmoConfig GizmoConfig

Gizmos configuration for ImageTarget and ObjectTarget .

GlobalSpatialMapServiceConfig

C#

public SparseSpatialMapWorkerFrameFilter.SpatialMapServiceConfig GlobalSpatialMapServiceConfig

Global spatial map service config.

GlobalCloudRecognizerServiceConfig

C#

public CloudRecognizerFrameFilter.CloudRecognizerServiceConfig GlobalCloudRecognizerServiceConfig

Global cloud recognizer service config.

GlobalMegaLocalizationServiceConfig

C#

public MegaTrackerFrameFilter.MegaLocalizationServiceConfig GlobalMegaLocalizationServiceConfig

Global Mega localization service config (used in EasyAR Mega).

GenerateXMLDoc

C#

public bool GenerateXMLDoc

Generate XML document when script reload to make intelliSense for API document work.

ARCoreSDK

C#

public EasyARSettings.ARCoreType ARCoreSDK

ARCore SDK configuration. If you are using AR Foundation, use EasyARSettings.ARCoreType.ARFoundationOrOptional to let the plugin decide which one to use, or use EasyARSettings.ARCoreType.External . If other ARCore SDK distributions is desired, use EasyARSettings.ARCoreType.External .

AREngineSDK

C#

public EasyARSettings.AREngineType AREngineSDK

AREngine SDK configuration. Set it to EasyARSettings.AREngineType.AREngineInterop if you want to use EasyAR AREngineInterop with AREngine SDK distribution along with plugin, EasyARSettings.AREngineType.External if other AREngine distributions is desired, EasyARSettings.AREngineType.Disabled if you do not want AREngine to appear in your app.

DisableARCoreAREngine

C#

public bool DisableARCoreAREngine

Disable ARCore and AREngine. This option is generally used in Unity 2019 when you do not want to deal with build fail caused by Gradle version if both ARCore and AREngine are not used. Disable ARCore and AREngine will make EasyAR ARCore and AREngine wrapper fail to run, and will make EasyAR World Sensing features like Sparse Spatial Map and Dense Spatial Map fail to run on devices where EasyAR Motion Tracking is not available but ARCore or AREngine is available. See https://developers.google.com/ar/develop/unity/android-11-build#unity_20193_and_20194 to make ARCore or AREngine work in Unity 2019.4.

Verify32bitOnlyARCoreWhenBuild

C#

public bool Verify32bitOnlyARCoreWhenBuild

Warn 32-bit-only ARCore-enabled build. ARCore has removed support for 32-bit-only ARCore-enabled apps running on 64-bit devices. Support for 32-bit apps running on 32-bit devices is unaffected. 32-bit-only ARCore-enabled apps that are not updated may crash when attempting to start an (ARCore) AR session. See https://developers.google.com/ar/64bit for further details.

VerifyLicenseWhenBuild

C#

public bool VerifyLicenseWhenBuild

Verify license when build Unity Project. When this option is on, license key will be verified during Unity build process and build will fail if license key is invalid on the platform or the license key does not contain package name / bundle identifier setup in the Unity Player Settings. Turn off this option if you setup license in a difference place, or if you need to change package name or bundle identifier after Unity build process.


Properties

Instance

C#

public static EasyARSettings Instance { get; }

Global settings instance.