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.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Bug ARFoundation - CreateRuntimeLibrary not working if called for the second time - iOS only

Discussion in 'AR' started by fcodebue, Mar 3, 2023.

  1. fcodebue

    fcodebue

    Joined:
    Oct 27, 2016
    Posts:
    3
    Hello,
    As in the title, the steps to replicate
    - Create a runtime ImageLibrary with CreateRuntimeLibrary
    - Load a scene with imagerecognition
    - Activate AR content framing the marker
    - Exit Scene
    - Re-enter scene (CreateRuntimeLibrary is fired again)
    - The marker is not recognized anymore until i close and reopen the app

    nb. works on Android

    my 2 cents: iOS have an issue with duplicate ReferenceImageLibrary files in the project, maybe that's the case with creating a library two times.

    As far as i know that's the only function used to switch from one library to another (i have multiple libraries to switch in different scenes so i need to call the Create method everytime i switch scene)
     
  2. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    691