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

Failed to set requested image library 'ReferenceImageLibrary' on ARKit

Discussion in 'AR' started by SushiRoll53, Mar 30, 2020.

  1. SushiRoll53

    SushiRoll53

    Joined:
    Mar 30, 2020
    Posts:
    6
    Hello,

    I am currently working on a Flutter app that uses Unity + Flutter integration, here is the link:
    https://github.com/snowballdigital/flutter-unity-view-widget
    what this does basically takes the Unity project and makes it something that IOS and Android can run, but right now I am having troubles running the Image Targeting (Displaying a 3D model either on the fly or on a plane works fine). This plug in export all I need to run the Unity project on my app, but when I try to run with this ReferenceImageLibrary it says that it cannot find it.

    The error that I get is:
    [General] No resource group with name "ReferenceImageLibrary_CF9AB49B-B0D2-4B4E-92A0-743F79544309"
    found
    InvalidOperationException: Failed to set requested image library 'ReferenceImageLibrary' on
    ARKit - there is no matching resource group, or the resource group does not contain any
    reference images.

    But, I have double checked and the resources are there, here is an image of how it looks on the project


    Things I have tried:
    - Make the path "Absolute Path" for the ImageLibrary
    - Use the ReferenceImageLibrary that has VR googles on it
    - Use different logos of appropriate sizes and extensions (.png)
    - Export directly from Unity to an xCode app
    - Tried different versions of AR Foundation and ARKit
    - Using only UnityFramework as my only target membership
    - Using both as my target membership

    Versions currently using:
    - Xcode 11.3.1
    - Unity 2019.3.5f1
    - AR Foundation 2.1.4
    - ARKit 2.1.1