-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullReferenceException: ResolveCloudAnchorPromise.AssignResult() #215
Comments
I wonder if your session or origin is null. This might get nulled out as you switch between arf4 and arf5 as you change from ARSessionOrigin to XROrigin for example. https://docs.unity3d.com/Packages/[email protected]/manual/version-history/migration-guide-5-x.html What I mean is as you switch the code the data might get nulls if you re-import the data and have changed your types. |
I can confirm my project's Origin gets cleared out on this newest release. Previously I could drag in type XROrigin and the new release makes me unable to. This is whether I use the scripting symbol ARCORE_USE_ARF_5 or not (since the release says this symbol is not used anymore). Any suggestions on how to get this Origin to be serialized on the new version of ARCoreExtensions (1.45)? |
Can get this working with the 1.45 arf5 samples with no changes? Once it is cleared out you have to manually fix each null that was caused by the bad re-serialization with an arf4 version of ARCore Extensions. You would have to look though and make sure you don't have nulls in other places too. Given what you are saying what version of 1.45 ARCore Extensions are you using? If you use the arf5 version you should be able to drag a XROrigin on to this and it should work. If you are using the arf4 version it would not let you that sounds like what is happening. |
Ah you're right, thanks, I got it working. I think I tried manually pointing the old import of the package to "https://github.com/google-ar/arcore-unity-extensions.git#arf5" and didn't confirm that would switch the targeted commit to the right branch. Re-importing the package using that target repo with the additional arf5 tag worked for me. |
Hi Guys, |
Could you also screenshot your "com.google.ar.core.arfoundation.extensions" section in your packages-lock.json file? |
Hey Pariskaman, |
I am using unity 2022.3.25.
ARCore Extension: 1.45
Once i place the anchor and go back click the Resolve button i am getting this error
The text was updated successfully, but these errors were encountered: