Table of Contents

Player configuration

This article introduces the Player configuration options that need to be noted when using EasyAR Sense Unity Plugin to package applications in Unity.

Configuration instructions for different platforms

When building in Unity, you need to check and confirm the following configurations.

Go to the Unity menu File -> Build Settings-> Player Settings, click the Android icon to bring up the corresponding settings for the Android platform.

switchtoandroid

Normally, you need to set the following options.

  • Package name
    Set the Package Name for the Android app. Note that the Package Name must match the one filled in when creating the License Key.

    androidPackageName

  • API level
    The API level supported by EasyAR depends on the version used. When using the Full variant, Android API Level 24 or higher is required; when using other variants, EasyAR Sense requires Android API Level 21 or higher.

    androidAPILevel

  • Target architecture
    If you need to use Google ARCore or other cases that require ARM64 support, you need to compile with IL2CPP and select ARM64 support. No configuration is required if ARM64 architecture support is not needed.

    androidarm64

  • Special configuration for video recording

    If you want to use the video recording feature, set Graphics API to OpenGLES3 or OpenGLES2, and uncheck Multithreaded Rendering. Additionally, you need to set Lib Variants > Android to VideoRecording in the EasyAR configuration.

    androidvideorecord

Common issues

Here are some common errors and solutions related to Player configuration.

  • License key error

    If the license key is invalid (e.g., Package Name mismatch), an error similar to is not a valid EasyAR Sense license key or it does not match package name will appear when building the application. If you choose to continue building, the resulting application will not function properly. Please carefully check and fix the issue based on the prompt before proceeding.

  • Disabling license verification during build

    In some special cases, if you manually initialize EasyAR's interface and do not use the License Key in the Settings file, you can select Continue and don't warn me again or disable the EasyAR Sense License > Verify When Build option in the EasyAR configuration. This will turn off the verification during the build process.

  • Support for non-ARM architecture Android devices

    EasyAR Sense does not directly support x86 and x86-64 architectures on Android systems. However, x86 devices generally support ARM-compatible programs. Therefore, you need to configure the build to exclude the x86 architecture, which allows the application to run normally on some x86 devices.