Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question ARFoundation Multi AR Session

Discussion in 'AR' started by Bduinat, Mar 25, 2021.

  1. Bduinat

    Bduinat

    Joined:
    Nov 26, 2018
    Posts:
    17
    Hi,

    What's the best way to have separate AR Session in a mobile app?
    On the main menu if I choose Game 1 , I want to activate AR Session with the ReferenceImageLibrary 'Game 1' and I don't want the markers from game 2 to trigger.
    If I choose Game 2, I want ti activate AR Session 2, using ReferenceImageLibrary 'Game 2', but I don't want the markers from Game 1 to trigger.

    I tried to enable/diable AR Session but it didn't work.
    Wondering what was the easiest way.
    Should I have only 1 ReferenceImageLIbrary and change dynamiclly the markers ?
    Thanks
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,768