Chapter 14: Completing the AR Game with the Universal Render Pipeline
This chapter completes the Augmented Reality (AR) project we started in the previous chapter. We'll extend the project by adding custom logic to detect a horizontal or vertical surface and spawn the turtle on the detected surface by tapping the screen.
An indispensable tool for creating an AR game is the ability to detect features in the environment. A feature could be anything from a face to a specific image or QR code. In this chapter, we will leverage the tools built into AR Foundation to detect surfaces, which Unity calls planes. We'll take advantage of prebuilt components and GameObjects to visualize the planes, which makes debugging easier. We will be able to see in real time when Unity has detected a plane, the size of the detected plane, and its location in the world.
We'll then write custom logic that will extract the plane data generated by Unity and make it accessible to our scripts...