Class EasyARController
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
The static proxy of 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 will be false if the license key verification fails or has not been executed.
public static bool IsReady { get; }
Property Value
Methods
Deinitialize()
Deinitialize EasyAR Sense.
This method is not related to resource release. Manual calling is usually not needed. It is called when multiple initialization and deinitialization are required.
public static void Deinitialize()
HandleSenseLog(Action<LogLevel, string>)
Handle Sense logs. Passing null can stop receiving logs.
The EasyAR Sense library usually outputs logs directly through system interfaces. If you need to display logs in the UI or obtain log content, you can use this interface. Note that using this interface does not suppress the original log output.
public static void HandleSenseLog(Action<LogLevel, string> func)
Parameters
func
Initialize()
Use LicenseKey to initialize EasyAR Sense. When InitializeOnStartup is true, manual calling is usually unnecessary.
public static bool Initialize()
Returns
Initialize(string)
Use licenseKey to initialize EasyAR Sense. When InitializeOnStartup is true, manual calling is usually unnecessary.
public static bool Initialize(string licenseKey)
Parameters
licenseKey