This Unity package provides a simple, flexible implementation of the Wave Function Collapse algorithm.
- In Unity, open the Package Manager
(Window -> Package Manager) - Click the plus (+) in the top left, then
Add package from git URL - Enter this repository url:
https://github.com/IndividualKex/wavetoolkit.git
- Create your modules
- Create a module scriptable object in your assets folder
(Right Click -> Create -> Wave Toolkit -> Module) - Drag and drop your actual module prefabs into the
Prefabfield - Define your connections, which currently are just based on string equivalency
- Create a module scriptable object in your assets folder
- Create a gameobject and add a
Generatorcomponent - In the
Generatorinspector, clickAdd Gridto add a wave grid - Add your modules to the
Modulesfield - Click
Generateto generate your grids