Summary
In this chapter, you built an AR project that lets you visualize and learn about planets in our Solar System. The scene uses AR image detection and tracks the planet cards that you printed out from the PDF file provided with the files for this book. Each planet card image includes a distinct marker with unique details, high contrast edges, and asymmetric shapes, making them readily detectable and trackable by the AR system. You set up the AR Session to track images using the AR Trackable Image Manager component and built a Reference Image Library asset with the planet card images.
You then created a generic Planet Prefab with a Planet script that controls the rotation behavior and metadata for a planet. Then, you created separate prefab variants for each planet. You wrote a PlanetsMainMode
script that instantiates the correct planet prefab when a specific planet card image is detected. This allows multiple tracked images and planets to be present in the scene. Then, you...