A downloadable tool

The Procedural Maze Generator is a Unity Editor tool that helps game developers quickly create grid-based maze layouts for level design and prototyping. Opened from Tools > Maze Generator, it builds real 3D scene geometry from Unity primitives rather than abstract data alone, so generated mazes can be inspected, edited, and saved as prefabs immediately.

Each maze is assembled from a small library of six tile shapes, closed blocks, dead ends, straights, corners, T-junctions, and crossroads that can be rotated to fit local connectivity. Developers can choose maze sizes of 3×3, 7×7, or 9×9, enable or disable specific tile types as hard generation constraints, and adjust tile size, wall height, wall thickness, and floor thickness to match project scale. Every generation uses a fresh random seed by default, with an option to lock the seed for reproducible layouts.

The tool guarantees a valid path from a marked green start to a red exit placed at the farthest reachable border cell. A statistics panel reports solution length and tile distribution, and each generated maze records its settings and seed on a MazeInstance component for later inspection or regeneration.


Demo Video:



Example 3x3 Maze:

Tool Configuration:



Example 7x7 Maze:


Tool Configuration:


Example 7x7 Maze:

Tool Configuration:



Developers:
Dang Tran

GMU CS Senior

Summer 2026

Published 24 days ago
StatusPrototype
CategoryTool
Authorsingleton_dang
AI DisclosureAI Assisted, Code

Download

Download
ProceduralMazeGenerator.unitypackage 16 kB