Table of Contents

Class EasyARController

Namespace
easyar
Assembly
EasyAR.Sense.dll

A static proxy for the EasyAR Sense Engine class, mainly used for Sense initialization.

[DisallowMultipleComponent]
public class EasyARController : MonoBehaviour
Inheritance
EasyARController

Properties

IsReady

Whether EasyAR Sense is ready. It is false if license key validation failed or has not been performed.

public static bool IsReady { get; }

Methods

Deinitialize()

Deinitializes EasyAR Sense.

This method is unrelated to resource release. It usually does not need to be called manually. Call it when initialization and deinitialization are needed multiple times.

public static void Deinitialize()

HandleSenseLog(Action<LogLevel, string>)

Handles Sense logs. Passing null can stop receiving logs.

The EasyAR Sense library usually outputs logs directly through system interfaces. If logs need to be displayed in the UI or their content needs to be obtained, this interface can be used. Note that using this interface does not remove the original log output.

public static void HandleSenseLog(Action<LogLevel, string> func)

Parameters

func

Initialize()

Initializes EasyAR Sense with LicenseKey. Manual calls are usually unnecessary when InitializeOnStartup is true.

public static bool Initialize()

Initialize(string)

Initializes EasyAR Sense with licenseKey. Manual calls are usually unnecessary when InitializeOnStartup is true.

public static bool Initialize(string licenseKey)

Parameters

licenseKey