Table of Contents

AR Session best practices for Mega Go

This article describes how to create and configure an AR session for Mega Go to get the best runtime effect on different types of devices.

Before you start

Default session configuration

For most applications, the default Mega Go session configuration is recommended. These configurations have been optimized for most common usage scenarios.

The default session supports the following types of devices:

  • Devices that support 6DoF motion tracking (some modern phones and headsets)
  • Devices that support 5DoF inertial navigation (most Android phones with gyroscopes and accelerometers)

In the Hierarchy view, right-click a blank area and use the menu EasyAR Sense > Mega > AR Session (Mega Go Default Preset) to create the default Mega Go session.

The corresponding script code is as follows:

ARSessionFactory.CreateSession(ARSessionFactory.ARSessionPreset.MegaGo_MotionTracking_Inertial)

This session uses the MegaGo_MotionTracking_Inertial preset:

Select different presets

In addition to the default Mega session configuration, you can select different presets according to specific requirements to create sessions. The main difference between them is the types of devices they support. When creating a session with the menu or ARSessionFactory.CreateSession(ARSessionFactory.ARSessionPreset, ARSessionFactory.Resources), the available presets include:

Note

Mega Go runs differently on different types of devices. For details, see Devices and platform applications supported by Mega.

Next steps