google-ar / arcore-unity-extensions

Google ARCore Extensions and Geospatial Creator for Unity's AR Foundation
Other
347 stars 97 forks source link

AddAnchor and ResolveAnchorOnTerrain are not available in ARFoundation 5.0.3 #112

Open krkrkrrk opened 1 year ago

krkrkrrk commented 1 year ago

I am creating a project using ARFoundation 5.0.3 and the Geospatial API, but I cannot use AddAnchor or ResolveAnchorOnTerrain because of a NullReferenceException.

Does anyone know how to solve this problem?

takeda1411123 commented 1 month ago

+1

swardle commented 1 month ago

I think if you are converting from ARF4 to ARF5 and maybe your scene file have a null in them probably becasue you have some wrong types like ARSessionOrigin vs XROrigin.

I am guessing this as we had the same bug in our samples in our ARF5 scenes before the upcoming 1.45 release.

If this is what you are doing check these references in your scene files if not please post adb logcat logs as I am not sure if this is your problem or not.