The '''MazeGenerator''' component generates a maze (with a ton of [[Slot|slots]]) with given parameters.
{{Table ComponentFields
{{Table ComponentFields
|Seed|Int|
|Seed|Int| The random seed for generating this maze.
|Cells|Int2|
|Cells|Int2| The maze square sections for this generated maze.
|WallSize|Float2|
|WallSize|Float2| X: how long the walls are, Y: how tall the walls are.
|Point0|Int2|
|Point0|Int2| The start position for this maze.
|Point1|Int2|
|Point1|Int2| The end position for this maze.
|Material|MaterialProvider|
|Material|MaterialProvider| The material for the walls of the maze.
|Bake|Bool|
|Bake|Bool| Bakes the generated maze.
}}
}}
== Behavior ==
== Sync Delegates ==
{{Table ComponentTriggers
|Generate:[[Type:Action|Action]]|[[Type:Action|Action]]|false| Generate the maze.
|OnRandomizeSeed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the randomize seed button is touched.
|OnGenerate:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the generate button is touched.