Table of Contents

Player Configuration

This document introduces the Player configuration options that need attention when packaging an application using the EasyAR Sense Unity Plugin in Unity.

Configuration Instructions for Different Platforms

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

In the Unity menu, go to File -> Build Settings-> Player Settings in sequence, 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 of the Android application. Note that the Package Name must be consistent with the one filled in when creating the License Key.

    androidPackageName

  • Minimum API Level The supported Minimum API level of EasyAR is related to the version used. When using the Full variant, Android API Level 24 or above is required; when using other variants, EasyAR Sense requires Android API Level 21 or above.

    androidAPILevel

    Tip

    The Full variant is usually used in the Mega Go edge-side positioning function and the 5DoF camera function. When using the Mega cloud positioning service, 5Dof camera support is also enabled by default.

    The EasyAR Sense variant used by the target platform can be viewed in the Lib Variants option in the Unity menu Project Settings > EasyAR > Sense.

  • Target Architecture If you need to use Google ARCore, or in other cases where ARM64 support needs to be compiled, you need to use IL2CPP for compilation and select ARM64 support. There is no need to configure it if ARM64 architecture support is not required.

    androidarm64

  • Special Configuration for Video Recording Function

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

    androidvideorecord

Common Issues

The following are some common errors and solutions related to Player configuration.

  • Error Report of Abnormal License Key

    If the License Key is abnormal (for example, the Package Name does not match), an error message similar to is not a valid EasyAR Sense license key or it does not match package name will appear when packaging the application. At this time, if you choose to continue packaging, the packaged application will not work properly. Please carefully check and fix the problem according to the window prompt before continuing to package.

  • Turn off License Check during Packaging

    In some special cases, if you manually initialize using the EasyAR interface and do not use the License Key in the Settings file, you can choose Continue and don't warn me again, or turn off the EasyAR Sense License > Verify When Build option in the EasyAR configuration, which will turn off the check during packaging.

  • Support for Android Devices with Non-ARM Architecture

    EasyAR Sense does not directly support Android systems with x86 and x86-64 architectures. However, the chips of devices with the x86 architecture can generally be compatible with ARM programs. Therefore, you need to configure to deselect the x86 architecture so that it can be used normally on some x86 devices.