Skip to content
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

Arcore Extensions XR-Origin / AR-Origin #172

Open
sauer3d-thws opened this issue Jan 25, 2024 · 6 comments
Open

Arcore Extensions XR-Origin / AR-Origin #172

sauer3d-thws opened this issue Jan 25, 2024 · 6 comments
Assignees

Comments

@sauer3d-thws
Copy link

sauer3d-thws commented Jan 25, 2024

Hi together,

following the getting started tutorial I am running into issues with packages.
https://developers.google.com/ar/develop/unity-arf/getting-started-extensions
Using Unity2022.3.5f1 I use the arcore-extensions 1.41.0 from github URL:
https://github.com/google-ar/arcore-unity-extensions.git
This automatically installs:
AR Foundation 5.0.6 / ARKit XR 5.0.6 / AR Core 5.0.6

After that an error occurs: "Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'" because I don`t have IOS build support installed.
After deleting the "Google.IOSResolver.dll" files it seems to work.

But when I try to setup the scene with "AR Session" + "XR Origin" and "ARCore Extensions" the "XR Origin" is not accepted as Session Origin in the AR Core Extensions Script, because the old AR Origin from version 4.x has changed to XR Origin.

Do I have to delete the XR Session Origin Script and use the deprecated AR Session Origin?
Is there a way to get an older package version from arfoundation? Only 5.x is shown in package manager.

What am I missing?

Thanks a lot and best regards,
Stefan

@mgarate
Copy link

mgarate commented Jan 27, 2024

You have to add a flag to your project for the ARCoreExtensions to know that you're using AR Foundation 5. Go to Player settings > Player > Other Settings > Scripting Compilation > Scripting Define Symbols: Add ARCORE_USE_ARF_5

Once you do this, the script will allow you to add XROrigin as the Origin.

@sauer3d-thws
Copy link
Author

Hi mgarate,
thanks a lot! It seems to work...
Is my rude solution to delete IOSresolver the way to go without IOS build support, or is there another solution? Simply ignore it?
Best regards! Stefan

@mgarate
Copy link

mgarate commented Jan 27, 2024

No problem and sorry, I can't help you with your iOS problem. I don't know the answer.

@sauer3d-thws
Copy link
Author

Thanks a lot. At the end I simply ignored the problem and it worked anyway on android.
Best regards, Stefan

@devbridie devbridie self-assigned this Jan 29, 2024
@mukiwalar
Copy link

Thanks a lot!!

@tpaslou
Copy link

tpaslou commented May 21, 2024

After adding the flag a few errors appeared in the console. You have to close the project and re open it and then everything works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants