EasyAR Sense Initialization

There are two methods to initialize EasyAR Sense in EasyAR Sense Unity Plugin, please choose the proper method according to your app details, in order to follow requirements from Compliance Guide or other requirements.

Automatic Initialization (Default)

In EasyAR Settings, check the Initialize On Startup option and fill in EasyAR Sense License > LicenseKey.

EasyAR Sense initialization will be called at the time point of Unity BeforeSceneLoad . If this time point does not match your requirements, you can do this manually.

Manual Initialization

Initialize through the interface EasyARController.Initialize.

In EasyAR Settings, uncheck the Initialize On Startup option. EasyAR Sense initialization will not be called automatically.

When using this method for initialization, the license can be filled in Project Settings, and then initialized through the parameterless EasyARController.Initialize, which will use the license filled in Project Settings. You can also use the parameterized EasyARController.Initialize for initialization; when using this interface, the parameter licenseKey will be used for initialization instead of the license in Project Settings.

Attention

The initialization interface EasyARController.Initialize must be called before starting ARSession.

If you want to call EasyARController.Initialize many times (this is not necessary generally), you must make sure to deinitialize using EasyARController.Deinitialize first before calling EasyARController.Initialize the second time. In addition, EasyARController.Deinitialize will be called automatically before app exits.