Table of Contents

Class EasyARSettings

Namespace
easyar
Assembly
EasyAR.Sense.dll

Konfigurationsinformationen für das EasyAR Sense Unity Plugin.

public class EasyARSettings : ScriptableObject
Vererbung
EasyARSettings

Felder

ARCoreSDK

ARCore-SDK-Konfiguration. Wenn Sie AR Foundation verwenden, können Sie ARFoundationOrOptional verwenden, damit das Plugin automatisch die zu verwendende ARCore-Verteilung wählt, oder External. Wenn Sie eine andere ARCore-SDK-Verteilung verwenden möchten, muss dies auf External gesetzt werden.

[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-Konfiguration. Um EasyAR AREngineInterop und die damit verteilte AREngine zu verwenden, setzen Sie auf AREngineInterop. Um eine andere AREngine-Verteilung zu verwenden, muss dies auf External gesetzt werden. Wenn Sie nicht möchten, dass AREngine in die App eingebunden wird, setzen Sie auf 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

ImageTarget- und ObjectTarget-Gizmos-Konfiguration.

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

GlobalCloudRecognizerServiceConfig

Globale Cloud-Erkennungsserverkonfiguration.

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

GlobalMegaBlockLocalizationServiceConfig

Globale Mega-Block-Positionierungsserverkonfiguration.

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

GlobalMegaLandmarkLocalizationServiceConfig

Globale Mega-Landmark-Positionierungsserverkonfiguration.

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

GlobalSpatialMapServiceConfig

Globale Sparse-Map-Serverkonfiguration.

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

InitializeOnStartup

Initialisiert EasyAR beim Start. Die Initialisierung von EasyAR verursacht keinen zusätzlichen spürbaren Ressourcenverbrauch, daher kann diese Option normalerweise aktiviert bleiben.

[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-Lizenzschlüssel. Dient zur Validierung, ob verschiedene Funktionen in EasyAR Sense verfügbar sind. Siehe 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

Konfigurationsoptionen im Zusammenhang mit dem Unity XR Framework.

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

Verify32bitOnlyARCoreWhenBuild

Warnt beim Erstellen von Apps mit ARCore-Unterstützung, die nur 32-Bit-Bibliotheken enthalten. ARCore hat die Unterstützung für Apps mit ARCore-Unterstützung und nur 32-Bit-Bibliotheken auf 64-Bit-Geräten entfernt. 32-Bit-Apps auf 32-Bit-Geräten sind nicht betroffen. Nicht aktualisierte ARCore-Apps mit nur 32-Bit-Bibliotheken können abstürzen, wenn sie versuchen, eine AR-Sitzung (ARCore) zu starten. Einzelheiten finden Sie unter 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

Validiert den Lizenzschlüssel beim Erstellen des Unity-Projekts. Wenn diese Option aktiviert ist, überprüft der Unity-Build-Prozess den Lizenzschlüssel. Wenn der Schlüssel auf der Build-Plattform ungültig ist oder den in den Unity Player Settings festgelegten Paketnamen nicht enthält, schlägt der Build-Prozess fehl. Wenn Sie einen anderswo konfigurierten Lizenzschlüssel verwenden oder den Paketnamen nach dem Unity-Build-Prozess ändern müssen, können Sie diese Option deaktivieren.

[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

Eigenschaften

Instance

Globale EasyARSettings-Einstellungen.

public static EasyARSettings Instance { get; }

LibVariants

Konfiguration für EasyAR Sense-Bibliotheksvarianten. Konfigurationsempfehlungen finden Sie unter Android und IOS.

public EasyARSettings.LibVariantConfig LibVariants { get; }

Permissions

Konfiguration der aktuellen App-Berechtigungen. Stellen Sie sicher, dass die Kamera-Berechtigung aktiviert ist, wenn Sie die Kamera verwenden. Andere Berechtigungen werden basierend auf der LibVariants-Konfiguration und ob Mega-Funktionen aktiviert sind, automatisch aktiviert oder deaktiviert.

public EasyARSettings.Permission Permissions { get; }

UseBundledONNXRuntime

Ob die gebündelte ONNX-Runtime verwendet werden soll.

Wenn die Android-Konfiguration von LibVariants auf Full gesetzt ist, ist ONNX erforderlich. Es wird empfohlen, die gebündelte Version zu verwenden oder eine neuere Version von der offiziellen ONNX-Website zu beziehen. Wenn eine nicht gebündelte Version verwendet wird, kann dies auf false gesetzt werden.

public bool UseBundledONNXRuntime { get; }