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 KeyNotFoundException: The given key 'XR Origin' was not present in the dictionary.

Discussion in 'AR' started by levoxtrip, Aug 21, 2023.

  1. levoxtrip

    levoxtrip

    Joined:
    May 4, 2020
    Posts:
    48
    Out of nothing I get this error.

    KeyNotFoundException: The given key 'XR Origin' was not present in the dictionary.
    at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x00000] in <00000000000000000000000000000000>:0
    at ImageRecognitionManager.AssignGameObject (UnityEngine.XR.ARFoundation.ARTrackedImage trackedImage) [0x00000] in <00000000000000000000000000000000>:0
    at ImageRecognitionManager.UpdateARImage (UnityEngine.XR.ARFoundation.ARTrackedImage trackedImage) [0x00000] in <00000000000000000000000000000000>:0
    at ImageRecognitionManager.OnImageChanged (UnityEngine.XR.ARFoundation.ARTrackedImagesChangedEventArgs eventArgs) [0x00000] in <00000000000000000000000000000000>:0
    at UnityEngine.XR.ARFoundation.ARTrackedImageManager.OnTrackablesChanged (System.Collections.Generic.List`1[T] added, System.Collections.Generic.List`1[T] updated, System.Collections.Generic.List`1[T] removed) [0x00000] in <00000000000000000000000000000000>:0
    at UnityEngine.XR.ARFoundation.ARTrackableManager`5[TSubsystem,TSubsystemDescriptor,TProvider,TSessionRelativeData,TTrackable].Update () [0x00000] in <00000000000000000000000000000000>:0
     
  2. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    840
    ImageRecognitionManager
    is not our code. You should contact the author of that class?