Initial Setup for the AR Object Examiner Project in Unity

Paul Killman
3 min readMar 6, 2024

--

I have written an article about creating a system that allows you to examine AR objects that you have placed into the real world. This capability will rely on some C# scripting.

I did the initial setup to create horizontal planes and the ability to place objects in the scene. I’ve included a series of images for each object in the scene.

XR Interaction Manager
XR Origin
Camera Offset
Main Camera
Main Camera Continued
Main Camera Continued
AR Session
AR Placement Interactable

The XR Origin has a Plane Manager component on it that uses AR Default Plane. This is a prefab that is used to create planes that objects can be place on.

AR Default Plane

AR Placement Interactable uses Placement Prefab Cube as the object to place. It has several components attached to it that allows it to be selected, translated, scaled, and rotated.

Placement Prefab Cube — Selection Interactable
Placement Prefab Cube — Translation Interactable
Placement Prefab Cube — Scale Interactable
Placement Prefab Cube — Rotation Interactable

Red Cube is a cube primitive with a red material on it. It’s been scaled and translated to show properly.

Red Cube

Selected is a cylinder primitive with a blue material. It’s been scaled and placed to show properly. It is used to show when an object has been selected. It is inactive by default.

Selected

With this setup, you should be able to place a cube into the real world and then scale, rotate, or translate it.

--

--