Building and deploying to Android

With most Unity development, we could just run our scene in the editor for testing. Unfortunately, when developing ARCore applications, we need to deploy the app to a device for testing. Fortunately, the project we are opening should already be configured for the most part. So, let's get started by following the steps in the next exercise:

  1. Open up the Unity editor to the sample ARCore project and open the HelloAR scene. If you left Unity open from the last exercise, just ignore this step.
  2. Connect your device via USB.
  3. From the menu, select File | Build Settings. Confirm that the settings match the following dialog:
Build settings dialog
  1. Confirm that the HelloAR scene is added to the build. If the scene is missing, click on the Add Open Scenes button to add it.
  2. Click on Build and Run. Be patient, first-time builds can take a while.
  3. After the app gets pushed to the device, feel free to test it, as you did with the Android version.

Great! Now we have a Unity version of the sample ARCore project running. In the next section, we will look at remotely debugging our app.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.205.214