In the first part of this tutorial, we programmed an algorithm that creates a three-dimensional randomized maze of single cells. Now we want to show this maze in our level. This tutorial is primarily about the simplest way of presenting the maze without any gameplay mechanics.
Sometimes you need a maze for your games or just a procedurally generated level. In Wikipedia you will find about “Maze Algorithm” some algorithms that are easy to implement. Now we would like to use the example of the “depth-first search algorithm” to create a 3D maze generator in Unity. That means, our maze should not only have ways in the two-dimensional plane, but ways may as well go up or down.