For more detail this asset from the Unity Asset Store: Click Here
This is a paid asset, but we’ll share Maze Generator for FREE, Please keep in mind this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.
Maze Generator v1.2
MazeGenerator is a versatile, easy to use component for generating maze in run-time (also available in Editor mode) from selected tiles. Mazes can be generated any size from any number of tiles with specified distance from starting point. Drop the component to your scene, put tiles in, adjust a few parameters and build your project with randomly generated mazes.
Demo:
Web player version
HTML5 version
Features:
Unlimited maze size;
Visual tiles editor;
Unlimited tiles count;
Run-time generating;
Static (editor mode) generating;
Fully random mazes;
Drag-and-drop system – no coding needed.
Packaged contains:
Scripts,
Demo scene,
Asset set for demo scene.