Arfoundation-samples: AR Foundation 3.0.0 Image Tracking not working

Created on 2 Sep 2019  路  2Comments  路  Source: Unity-Technologies/arfoundation-samples

I can't get Image Tracking to work using AR Foundation 3.0.0 preview 1, not even the sample scene.

Unity 2019.2.3f1
ARFoundation 3.0.0 preview 1
ARCore XR Plugin 3.0.0 preview 1
ARKit XR Plugin 3.0.0 preview 1
Android 9

bug fixed

Most helpful comment

This was an issue on IL2CPP only and ~has been fixed~ will be fixed in 3.0.0-preview.3

All 2 comments

I'm having the same issue, with the same setup. Enabling 'Development Build' in the Build settings allows an ImageTracking scene to load, the background camera shows up but it does not seem to function. If I disable Development Build, the scene does not load and crashes the app with this error:

09/04 17:07:23.600 22330 22347 Info native: arpresto_api.cc:68 ArPresto::ArPresto_checkApkAvailability
09/04 17:07:23.641 22330 22347 Error Unity: MarshalDirectiveException: Cannot marshal type 'UnityEngine.XR.ARCore.NativeView'1'.
09/04 17:07:23.641 22330 22347 Error Unity: at UnityEngine.XR.ARCore.ARCoreImageDatabase.UnityARCore_ImageDatabase_deserialize (UnityEngine.XR.ARCore.NativeView'1[T] serializedDatabase, UnityEngine.XR.ARCore.NativeView'1[T] referenceImages) [0x00000] in <00000000000000000000000000000000>:0
09/04 17:07:23.641 22330 22347 Error Unity: at UnityEngine.XR.ARCore.ARCoreImageDatabase..ctor (UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary serializedLibrary) [0x00000] in <00000000000000000000000000000000>:0
09/04 17:07:23.641 22330 22347 Error Unity: at UnityEngine.XR.ARCore.ARCoreImageTrackingProvider+Provider.CreateRuntimeLibrary (UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary serializedLibrary) [0x00000] in <00000000000000000000000000000000>:0
09/04 17:07:23.641 22330 22347 Error Unity: at UnityEngine.XR.ARSubsystems.XRImageTrackingSubsystem.CreateRuntimeLibrary (UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary serializedLibrary) [0x00000] in <00000000000000000000000000000000>:0
09/04 17:07:23.641 22330 22347 Error Unity: at UnityEngine.XR.ARFoundation.ARTrackedImageManager.OnBeforeStart () [0x00000] in <0000000000000000

>

This was an issue on IL2CPP only and ~has been fixed~ will be fixed in 3.0.0-preview.3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jessekirbs picture jessekirbs  路  5Comments

alessiograncini picture alessiograncini  路  7Comments

Berenice2018 picture Berenice2018  路  3Comments

jBachalo picture jBachalo  路  6Comments

FDDdan picture FDDdan  路  6Comments