wrld3d / unity-api

Issue tracking for the WRLD Unity SDK
28 stars 8 forks source link

Possible to have a sample project which implements both ARCore & ARKit? #93

Closed dellams closed 3 years ago

dellams commented 6 years ago

Hi there,

We see you have your sample project for both ARCore & ARKit but they are currently both separate.

Would it please be possible if you can supply a sample project which merges these two together?

We have held off using your awesome SDK for a while waiting for your Unity implementation because we did not want to manage two separate codebases for both Android and iOS but now with AR they have been separated again, so it would be great if they could be merged please?

Many thanks, David.

ArslanJafri commented 6 years ago

Hi David,

While we have not tried it, it shouldn't be too hard to merge the two projects together. Some helpful steps are given below. Please let us know if you face any issues and we will try to help out.

  1. Start with any sample projects. Let's say ARKit.
  2. Copy the Common folder to Wrld Sdk Samples.
  3. Copy the ARCore Sample folder from the ARCore Sample Project to Wrld Sdk Samples.
  4. Follow the given setup steps for both ARKit and ARCore from step 5 and onward on the merged project.
  5. Make sure that builds settings are correct for both platforms. For example, ARCore needs these settings.
  6. Switch to the required platform and build.

You might also be interested in the iOS setup for ARCore which provides an integration with ARKit. If you want, then you can just use the ARCore sample and deploy it to both Android and iOS. See the steps on the ARCore documentation for deploying to to iOS and Android. It might simplify the process for you if you do not have to merge the samples. ARCore Android: https://developers.google.com/ar/develop/unity/quickstart-android ARCore iOS: https://developers.google.com/ar/develop/unity/quickstart-ios

Best, Ali

ghost commented 3 years ago

Updated sample project for XR Foundation and Unity 2019/2020: https://github.com/wrld3d/wrld-unity-xr-samples/