Table of Contents

Class EasyARSettings

Namespace
easyar
Assembly
EasyAR.Sense.dll

EasyAR Sense Unity Plugin的配置信息。

public class EasyARSettings : ScriptableObject
Inheritance
EasyARSettings

Fields

ARCoreSDK

ARCore SDK配置。如果你在使用AR Foundation,可以使用 ARFoundationOrOptional 来让插件自动决定使用的ARCore分发,也可以使用External。如果期望使用其它ARCore SDK分发,需要设置为External

[Tooltip("ARCore SDK configuration. If you are using AR Foundation, use ARFoundationOrOptional to let the plugin decide which one to use, or use External. If other ARCore SDK distributions is desired, use External.")]
public EasyARSettings.ARCoreType ARCoreSDK

Field Value

AREngineSDK

AREngine SDK配置。如需使用EasyAR AREngineInterop以及与其一起分发的AREngine,设置为AREngineInterop,如需使用其它AREngine分发,需要设置为External。如果你不希望AREngine被打包到app中,需设置为Disabled

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

Field Value

GizmoConfig

[Tooltip("Gizmos configuration for ImageTarget and ObjectTarget.")]
public EasyARSettings.TargetGizmoConfig GizmoConfig

Field Value

GlobalCloudRecognizerServiceConfig

全局云识别服务器配置。

[Tooltip("Global cloud Recognition service config.")]
public APIKeyAccessData GlobalCloudRecognizerServiceConfig

Field Value

GlobalMegaBlockLocalizationServiceConfig

全局Mega Block定位服务器配置。

[Tooltip("Global Mega Block localization service config.")]
public APIKeyAccessData GlobalMegaBlockLocalizationServiceConfig

Field Value

GlobalMegaLandmarkLocalizationServiceConfig

全局Mega Landmark定位服务器配置。

[Tooltip("Global Mega Landmark localization service config.")]
public APIKeyAccessData GlobalMegaLandmarkLocalizationServiceConfig

Field Value

GlobalSpatialMapServiceConfig

全局稀疏地图服务器配置。

[Tooltip("Global spatial map service config.")]
public FixedAddressAPIKeyAccessData GlobalSpatialMapServiceConfig

Field Value

InitializeOnStartup

在启动时初始化EasyAR。EasyAR的初始化不会造成额外的明显资源消耗,因此通常可以保持这个选项打开。

[Tooltip("Initialize EasyAR Sense on startup. EasyAR initialize does not result extra resource usages, so usually you can keep this option on.")]
public bool InitializeOnStartup

Field Value

LicenseKey

EasyAR Sense License Key。用于验证EasyAR Sense内部各种功能是否可用。详见 https://www.easyar.cn 。

[Tooltip("EasyAR Sense License Key. Used for validation of EasyAR Sense functions. Please visit https://www.easyar.com for more details.")]
[SerializeField]
[TextArea(1, 4)]
public string LicenseKey

Field Value

UnityXR

与Unity XR Framework相关的配置项。

[Tooltip("Configuration options related to the Unity XR Framework.")]
public EasyARSettings.UnityXROptions UnityXR

Field Value

Verify32bitOnlyARCoreWhenBuild

在构建仅有32位且使用ARCore的应用时产生警告。ARCore已经移除了对64位设备上的只有32位库的ARCore的应用的支持。在32位设备上的32位应用不受影响。未更新的仅有32位库的ARCore应用可能会在尝试启动(ARCore的)AR session时崩溃。详情可以参考 https://developers.google.com/ar/64bit 。

[Tooltip("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.")]
public bool Verify32bitOnlyARCoreWhenBuild

Field Value

VerifyLicenseWhenBuild

在构建Unity工程时验证license Key。当这个选项打开时,Unity项目构建过程会验证license Key,如果license在构建平台上无效或不包含Unity Player Settings中设置的包名,构建过程将会失败。如果你需要使用其它地方配置的license key或者需要在Unity构建过程之后修改包名,可以关闭这个选项。

[Tooltip("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.")]
[SerializeField]
public bool VerifyLicenseWhenBuild

Field Value

WorkaroundForUnity

Workaround for Unity.

public EasyARSettings.Workaround WorkaroundForUnity

Field Value

Properties

Instance

全局EasyARSettings

public static EasyARSettings Instance { get; }

Property Value

LibVariants

EasyAR Sense 库变种配置。配置建议请参考AndroidIOS

public EasyARSettings.LibVariantConfig LibVariants { get; }

Property Value

Permissions

当前应用权限配置。请确保在使用相机时打开相机权限。其它权限将根据LibVariants配置以及Mega功能是否打开自动开启或关闭。

public EasyARSettings.Permission Permissions { get; }

Property Value

UseBundledONNXRuntime

是否使用捆绑的ONNX runtime。

LibVariants的Android配置为Full时,需要使用ONNX。建议使用捆绑的版本,或从ONNX官方获取更新版本。使用非捆绑版本时,可以设置为false。

public bool UseBundledONNXRuntime { get; }

Property Value