Class EasyARController
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
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 is not executed.
public static bool IsReady { get; }
Property Value
Methods
Deinitialize()
Deinitialize EasyAR Sense. This method is not related to resource release. It is usually not necessary to call manually. Call when multiple initializations and deinitializations are needed.
This method is not related to resource release. It is usually not necessary to call manually. Call when multiple initializations and deinitializations are needed.
public static void Deinitialize()
HandleSenseLog(Action<LogLevel, string>)
Process Sense logs. Passing null can stop receiving logs.
The EasyAR Sense library usually outputs logs directly through the system interface. If you need to display them in the UI or obtain log content, you can use this interface. Note that using this interface does not delete the output of the log itself.
public static void HandleSenseLog(Action<LogLevel, string> func)
Parameters
func
Initialize()
Initialize EasyAR Sense using LicenseKey. InitializeOnStartupis usually not necessary to call manually when true.
public static bool Initialize()
Returns
Initialize(string)
Initialize EasyAR Sense using licenseKey. InitializeOnStartupis usually not necessary to call manually when true.
public static bool Initialize(string licenseKey)
Parameters
licenseKey