Initial Setup for the AR Object Examiner Project in Unity
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.
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 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.
Red Cube is a cube primitive with a red material on it. It’s been scaled and translated to show properly.
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.
With this setup, you should be able to place a cube into the real world and then scale, rotate, or translate it.