4. ARGearManager
ARGearManager controls the overall workflow of ARGear and provides all ARGear functionalities.
As scripts are already included in game objects in a scene, additional init and create are not required.
As scripts are already included in game objects in a scene, additional run is not required.
Resume or pause ARGearManager according to its LifeCycle.
Below is a sample code for pausing and resuming ARGearManager.
C#
Pause and Resume ARGearManager
private void OnApplicationPause(bool pause)
{
if (pause)
ARGearNative.Pause();
else
ARGearNative.Resume();
}
Destroy ARGearManager. Sample code for destroying ARGearManager is written below.
C#
Destroy ARGearManager
private void OnDestroy()
{
ARGearNative.Destroy();
}
Last modified 3yr ago