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

How to create ARFoundation's ARAnchor from ARKit's ARAnchor? #1154

Closed
misterPitty opened this issue Jan 12, 2024 · 2 comments
Closed

How to create ARFoundation's ARAnchor from ARKit's ARAnchor? #1154

misterPitty opened this issue Jan 12, 2024 · 2 comments
Labels
how to Explains how to accomplish something

Comments

@misterPitty
Copy link

misterPitty commented Jan 12, 2024

I want to create ARKit's ARGeoAnchor like in this ARFoundation sample and work with it in unity.
But, as i see, it just creates arkit's anchor. How can i get its arfoundation's representation?
As i understand, when we use ARAnchorManager (AddAnchor or AttachAnchor) arfoundation sends request to native plugin and then creates his unity representation (ARFoundation's ARAnchor) for us.
I think, i need also do it but by myself.

@misterPitty misterPitty added the how to Explains how to accomplish something label Jan 12, 2024
@andyb-unity
Copy link
Collaborator

You can't create an AR Foundation anchor using the existing API's. You would need to write your own provider for the XRAnchorSubsystem to achieve your desired functionality. If you'd like us to implement this, please add a note to our AR Foundation road map: https://unity.com/roadmap/unity-platform/xr

@andyb-unity
Copy link
Collaborator

Resolving this question as asked and answered. Feel free to comment if you have further questions, and we can re-open it.

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

No branches or pull requests

2 participants