Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Templates
Systems
1/6
The Maze Generation and Solving System creates random mazes using DFS and solves them with DFS and BFS, making it ideal for puzzles, AI pathfinding, and procedural levels.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2021.3.42f1
Compatible
Compatible
Compatible
Description

The Maze Generation and Solving System is a fully customizable tool for creating and solving mazes in Unity. It generates random mazes using the Depth-First Search (DFS) algorithm and solves them with both DFS and Breadth-First Search (BFS). The package includes a showcase scene, allowing you to visualize maze creation and pathfinding in real time.

This system is suitable for puzzle games, AI pathfinding, procedural level generation, and educational purposes. The code is modular and extensible, enabling easy customization of maze size, generation rules, and solution visualization.

Technical details

Technical Details

  • Randomized Maze Generation – Uses the Depth-First Search (DFS) algorithm to create unique maze structures dynamically.
  • Multiple Pathfinding Algorithms – Supports both Depth-First Search (DFS) and Breadth-First Search (BFS) for solving mazes.
  • Graph-Based System – Mazes are represented as a graph of nodes and edges, allowing efficient pathfinding and modifications.
  • Showcase Scene Included – A ready-to-use scene demonstrates maze generation and AI solving in real-time.
  • Customizable Parameters – Easily adjust maze size, start and end points, and randomization settings.
  • Interactive Solution Visualization – AI-controlled players traverse the maze following the computed paths.
  • Optimized for Unity – Designed for performance and modularity, ensuring smooth integration into any Unity project.

maze generator & solver

(not enough ratings)
5 users have favourite this asset
(5)
$15
Taxes/VAT calculated at checkout
15 views in the past week
License type: Single Entity
Single Entity
Recommended for individuals and small businesses.
Multi Entity
Recommended for large enterprises working across multiple locations.
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
337.6 KB
Latest version
1.0.0
Latest release date
Feb 6, 2025
Original Unity version
2021.3.42
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR