ARGear SDK Documentations
  • Introduction
  • Android
    • 1. Quickstart
    • 2. Configuration Settings
    • 3. ARGear Overview
    • 4. ARGSession
    • 5. Camera
    • 6. Rendering
    • 7. CMS Service
    • 8. Download Contents
    • 9. Set Contents
    • 10. Media
    • 11. Switch Camera Face
    • 12. Enable Debugging Mode
    • 13. ARCore Connect API
    • 14. API Reference
  • iOS
    • 1. Quickstart
    • 2. Configuration Settings
    • 3. ARGear Overview
    • 4. ARGSession
    • 5. Camera
    • 6. Rendering
    • 7. CMS Service
    • 8. Download Contents
    • 9. Set Contents
    • 10. Media
    • 11. Switch Camera Face
    • 12. Enable Debugging Mode
    • 13. ARKit Connect API
    • 14. API Reference
  • Unity
    • 1. Quickstart
    • 2. Configuration Settings
    • 3. ARGear Plugin Overview
    • 4. ARGearManager
    • 5. ARGearCamera
    • 6. CMS Service
    • 7. Download Contents
    • 8. Set Contents
    • 9. Switch Camera Face
    • 10. Enable Debugging Mode
    • 11. API Reference
Powered by GitBook
On this page
  • 4.1. Init & Create
  • 4.2. Run
  • 4.3. Resume / Pause
  • 4.4. Destroy

Was this helpful?

  1. Unity

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.

Pause and Resume ARGearManager
private void OnApplicationPause(bool pause)
{
    if (pause)
        ARGearNative.Pause();
    else
        ARGearNative.Resume();
}

4.4. Destroy

Destroy ARGearManager. Sample code for destroying ARGearManager is written below.

Destroy ARGearManager
private void OnDestroy()
{
    ARGearNative.Destroy();
}
Previous3. ARGear Plugin OverviewNext5. ARGearCamera

Last updated 5 years ago

Was this helpful?