Table of Contents

Class EasyARSettings

命名空間
easyar
組件
EasyAR.Sense.dll

EasyAR Sense Unity Plugin的設定資訊。

public class EasyARSettings : ScriptableObject
繼承
EasyARSettings

欄位

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

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

GizmoConfig

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

GlobalCloudRecognizerServiceConfig

全域雲端識別伺服器設定。

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

GlobalMegaBlockLocalizationServiceConfig

全域Mega Block定位伺服器設定。

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

GlobalMegaLandmarkLocalizationServiceConfig

全域Mega Landmark定位伺服器設定。

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

GlobalSpatialMapServiceConfig

全域稀疏地圖伺服器設定。

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

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

LicenseKey

EasyAR Sense授權金鑰。用於驗證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

UnityXR

與Unity XR Framework相關的設定項。

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

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

VerifyLicenseWhenBuild

在構建Unity工程時驗證授權金鑰。當這個選項開啟時,Unity專案構建過程會驗證授權金鑰,如果授權在構建平台上無效或不包含Unity Player Settings中設定的套件名稱,構建過程將會失敗。如果你需要使用其它地方設定的授權金鑰或者需要在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

WorkaroundForUnity

Workaround for Unity.

public EasyARSettings.Workaround WorkaroundForUnity

屬性

Instance

全域EasyARSettings

public static EasyARSettings Instance { get; }

LibVariants

EasyAR Sense 程式庫變種設定。設定建議請參考AndroidIOS

public EasyARSettings.LibVariantConfig LibVariants { get; }

Permissions

當前應用權限設定。請確保在使用相機時開啟相機權限。其它權限將根據LibVariants設定以及Mega功能是否開啟自動開啟或關閉。

public EasyARSettings.Permission Permissions { get; }

UseBundledONNXRuntime

是否使用捆綁的ONNX runtime。

LibVariants的Android設定為Full時,需要使用ONNX。建議使用捆綁的版本,或從ONNX官方取得更新版本。使用非捆綁版本時,可以設定為false。

public bool UseBundledONNXRuntime { get; }