Automated: update Replace |
add sync delegate desc |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 18: | Line 18: | ||
== Sync Delegates == | == Sync Delegates == | ||
{{Table ComponentTriggers | {{Table ComponentTriggers | ||
|Generate | |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. | |||
}} | }} | ||
Line 25: | Line 27: | ||
== Examples == | == Examples == | ||
{{stub}} | |||
== See Also == | == See Also == | ||
[[Category:Components:Generators{{#translation:}}|Maze Generator]] | [[Category:Components:Generators{{#translation:}}|Maze Generator]] | ||
[[Category:Components{{#translation:}}|Maze Generator]] | [[Category:Components{{#translation:}}|Maze Generator]] |
Latest revision as of 20:27, 7 April 2025
Component image 
Maze Generator component as seen in the Scene Inspector

The MazeGenerator component generates a maze (with a ton of slots) with given parameters.
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
Seed
|
Int | The random seed for generating this maze. |
Cells
|
Int2 | The maze square sections for this generated maze. |
WallSize
|
Float2 | X: how long the walls are, Y: how tall the walls are. |
Point0
|
Int2 | The start position for this maze. |
Point1
|
Int2 | The end position for this maze. |
Material
|
MaterialProvider | The material for the walls of the maze. |
Bake
|
Bool | Bakes the generated maze. |
Sync Delegates
Method Name | Method type and Arguments. | Is the method hidden? | Description |
---|---|---|---|
Generate:Action
|
Action | X | Generate the maze. |
OnRandomizeSeed:ButtonEventHandler
|
ButtonEventHandler | ✓ | Called when the randomize seed button is touched. |
OnGenerate:ButtonEventHandler
|
ButtonEventHandler | ✓ | Called when the generate button is touched. |
Usage
Great for prototyping mazes, and can be baked.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.