Class EasyARSettings
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
Konfiguration information for the EasyAR Sense Unity Plugin.
public class EasyARSettings : ScriptableObject
- Vererbung
-
EasyARSettings
Felder
ARCoreSDK
ARCore SDK konfiguration. If you are using AR Foundation, you can use ARFoundationOrOptional to let the plugin automatically decide which ARCore distribution to use, or use External. If you want to use another ARCore SDK distribution, set it to 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 konfiguration. To use EasyAR AREngineInterop and the AREngine distributed with it, set this to AREngineInterop. To use another AREngine distribution, set it to External. If you do not want AREngine to be packaged into the app, set it to 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 and ObjectTarget Gizmos konfiguration.
[Tooltip("Gizmos configuration for ImageTarget and ObjectTarget.")]
public EasyARSettings.TargetGizmoConfig GizmoConfig
GlobalCloudRecognizerServiceConfig
Global cloud recognition server konfiguration.
[Tooltip("Global cloud Recognition service config.")]
public APIKeyAccessData GlobalCloudRecognizerServiceConfig
GlobalMegaBlockLocalizationServiceConfig
Global Mega Block localization server konfiguration.
[Tooltip("Global Mega Block localization service config.")]
public APIKeyAccessData GlobalMegaBlockLocalizationServiceConfig
GlobalMegaLandmarkLocalizationServiceConfig
Global Mega Landmark localization server konfiguration.
[Tooltip("Global Mega Landmark localization service config.")]
public APIKeyAccessData GlobalMegaLandmarkLocalizationServiceConfig
GlobalSpatialMapServiceConfig
Global sparse map server konfiguration.
[Tooltip("Global spatial map service config.")]
public FixedAddressAPIKeyAccessData GlobalSpatialMapServiceConfig
InitializeOnStartup
Initializes EasyAR at startup. EasyAR initialization does not cause noticeable additional resource consumption, so this option can usually stay enabled.
[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. Used to verify whether various internal EasyAR Sense features are available. See https://www.easyar.cn for details.
[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
Konfiguration items related to Unity XR Framework.
[Tooltip("Configuration options related to the Unity XR Framework.")]
public EasyARSettings.UnityXROptions UnityXR
Verify32bitOnlyARCoreWhenBuild
Generates a warning when building an ARCore application that is 32-bit only. ARCore has removed support for ARCore applications with only 32-bit libraries on 64-bit devices. 32-bit applications on 32-bit devices are not affected. ARCore applications with only outdated 32-bit libraries may crash when trying to start an (ARCore) AR session. See https://developers.google.com/ar/64bit for details.
[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
Validates the license Key when building the Unity project. When this option is enabled, the Unity project build process validates the license Key. If the license is invalid on the build platform or does not contain the package name set in Unity Player Settings, the build process will fail. If you need to use a license key configured elsewhere or need to modify the package name after the Unity build process, you can disable this option.
[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
Global EasyARSettings.
public static EasyARSettings Instance { get; }
LibVariants
EasyAR Sense library variant konfiguration. For konfiguration recommendations, refer to Android, IOS, and VisionOS.
public EasyARSettings.LibVariantConfig LibVariants { get; }
Permissions
Current application permission konfiguration. Make sure camera permission is enabled when using the camera. Other permissions will be automatically enabled or disabled according to LibVariants konfiguration and whether Mega features are enabled.
public EasyARSettings.Permission Permissions { get; }
UseBundledONNXRuntime
Whether to use the bundled ONNX runtime.
When using InertialCameraDevice or Mega Go, ONNX is required. It is recommended to use the bundled version, or obtain a newer version from the official ONNX source. When using a non-bundled version, this can be set to false.
public bool UseBundledONNXRuntime { get; }