UNITY | AR DEVELOPMENT | AR FOUNDATION PACKAGE | PLANE MANAGER

Setting up Plane Detection in Unity AR

Configure Application to Detect and Visualize Planes

Jordan T Kay
2 min readJun 24, 2024

STEPS NEEDED

  1. PLANE MANAGER Component | XR ORIGIN (AR) GameObject
  2. Create & Configure a Default Plane Prefab

STEP ONE — Plane Manager Component | XR Origin (AR) GameObject

XR ORIGIN (AR) > Add Component > AR Plane Manager

The Plane Manager is a type of Trackable Manager that creates, updates, and removes GameObjects in response to detected surfaces in the physical environment. It also creates GameObjects within our scene to visually represent each plane it creates based on a referenced Plane Prefab.

A plane is a flat surface represented by a pose, dimensions, and boundary points. This data is then used to form a shape without any inward dents (convex).

The Plane Manager also has a Detection Mode setting which can be specified to detect horizontal planes (Tabletops, Countertops, floors, etc.), vertical planes (Walls, Fences, etc.), or both.

STEP TWO — Create & Configure a Default Plane Prefab

Scene > Create > XR> AR Default Plane

The Default Plane Prefab is what will be used to display the planes within the scene.

The Default Plane works pretty much out-of-the-box, but for slight customization, the material choice is going to be reconfigured to a transparent green. Once the Default Plane is configured to be a prefab, it then needs to be referenced within the Plane Manager Component.

--

--

Jordan T Kay

Join my journey into game development with Unity. Learning all I can to produce quality games. 🚀