4. ARGearManager
ARGearManager controls the overall workflow of ARGear and provides all ARGear functionalities.

4.1. Init & Create

As scripts are already included in game objects in a scene, additional init and create are not required.

4.2. Run

As scripts are already included in game objects in a scene, additional run is not required.

4.3. Resume / Pause

Resume or pause ARGearManager according to its LifeCycle.
Below is a sample code for pausing and resuming ARGearManager.
C#
Pause and Resume ARGearManager
1
private void OnApplicationPause(bool pause)
2
{
3
if (pause)
4
ARGearNative.Pause();
5
else
6
ARGearNative.Resume();
7
}
Copied!

4.4. Destroy

Destroy ARGearManager. Sample code for destroying ARGearManager is written below.
C#
Destroy ARGearManager
1
private void OnDestroy()
2
{
3
ARGearNative.Destroy();
4
}
Copied!
Last modified 1yr ago