Exporting the SolarSystem package

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:

  1. In Hierarchy, select the SolarSystem object and drag it onto the project window's Assets/SolarSystem/Prefabs folder.
  2. Right-click on the SolarSystem folder and select Export Package....
  3. Uncheck Include Dependencies.
  4. Uncheck the PlanetMarkerHandler.cs script since it specifically has Vuforia dependencies.
  5. 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.

Get Augmented Reality for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.