Search Unity

How to use different scenes in an AR app?

Discussion in 'AR/VR (XR) Discussion' started by waldgeist, May 31, 2019.

  1. waldgeist

    waldgeist

    Joined:
    May 6, 2017
    Posts:
    388
    An AR app can get pretty big, so I am hitting the Google Play store app size limit. To avoid this, I want to split the app into a small startup APK and extension files (obb).

    To reduce the APK as much as possible, it is recommended to use a small startup scene (which e.g. only shows a splash screen) and then switch to the actual content scene on startup (using SceneManager.LoadScene()).

    However, if I try this in my AR app, the scene switch takes place, but the AR camera is not being activated when loading the AR scene. Thus, any AR functionality does not work.

    This problem only happens with ARCore on Android. On iOS, switching the scene is working fine.

    The app is based on AR foundation.
     
    Last edited: May 31, 2019