In this section, we'll quickly step through the process of building the project for Android, iOS, and HoloLens devices. And, we'll see how to build it using AR Toolkit, instead of Vuforia.
If you are considering building for more than one platform, you may want to save SolarSystem
as a prefab and then export it as a Unity package to reuse in a different project:
- In
Hierarchy
, select theSolarSystem
object and drag it onto the project window'sAssets/SolarSystem/Prefabs
folder. - Right-click on the
SolarSystem
folder and selectExport Package....
- Uncheck
Include Dependencies
. - Uncheck the
PlanetMarkerHandler.cs
script since it specifically has Vuforia dependencies. - Export it.
Now if you create a new project or scene, such as for HoloLens or AR Toolkit, you can drag the entire SolarSystem
prefab into that scene.