One of the features of AR is its ability to detect flat surfaces through device cameras and other sensors (such as the LIDAR sensors on some high-end iPads and iPhones). This recipe illustrates how a Unity AR Raycast, combined with some AR Foundation objects and scripts, can highlight detected planes (horizontal and vertical) with a circular highlighter image:
Figure 15.77 – Highlighting detected planes in our AR app