This is a set of scripts to generate terrain in Unity3D using a custom wave function collapse algorithm. These scripts were last tested in January 2023 so they may not work for the latest versions of Unity.
- Create a Unity3D project
- Drag and drop the scripts into the game editor hierarchy.
- Create a game object that will act as the terrain generator.
- Attach the WaveCollapseGrid.cs to it.
- Create a game object that will act as the cell.
- Attach the WaveCollapseCell.cs to it.
- Hit Run in the editor.
- A grid of unity gizmos should appear with different colors representing different terrains.
- Alternatively, one could test the script found in /Old/ using similar Instructions.
- It was last tested in March 2021, so it may require an even older version of Unity.
- Some cells do not collapse.