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 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
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工程時驗證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
WorkaroundForUnity
Workaround for Unity.
public EasyARSettings.Workaround WorkaroundForUnity
屬性
Instance
public static EasyARSettings Instance { get; }
LibVariants
public EasyARSettings.LibVariantConfig LibVariants { get; }
Permissions
當前應用權限配置。請確保在使用相機時打開相機權限。其它權限將根據LibVariants配置以及Mega功能是否打開自動開啓或關閉。
public EasyARSettings.Permission Permissions { get; }
UseBundledONNXRuntime
是否使用捆綁的ONNX runtime。
當使用 InertialCameraDevice 或 Mega Go 時,需要使用 ONNX。建議使用捆綁的版本,或從 ONNX 官方獲取更新版本。使用非捆綁版本時,可以設置爲 false。
public bool UseBundledONNXRuntime { get; }