Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    1,018