To create an AR furniture previewer, do the following:
- Delete the two cubes in the Hierarchy window.
- In the Hierarchy window, select the AR Session Origin GameObject. In the Inspector window, add an AR Plane Manager (Script) component by clicking the Add Component button and searching for AR Plane in the Inspector window. Set Detection Mode to Horizontal.
- Now, add an AR Raycast Manager (Script) component to this GameObject by clicking the Add Component button and searching for AR Raycast in the Inspector window:

Figure 15.82 – The AR Plane Manager and AR Raycast Manager components of AR Session Origin
- In this scene, we'll create a simple chair-like object using a cube and three spheres. You could, of course, find a free detailed 3D model of more realistic furniture on the Unity Asset Store (for example, https://assetstore.unity.com/?free=true&q=furniture):

Figure 15.83...