# How to use wave function collapse plugin?

**URL:** <https://forums.unrealengine.com/t/how-to-use-wave-function-collapse-plugin/617245>\
**Category:** Plugins\
**Tags:** unreal-engine, UE5-0, Plugins, question\
**Created:** [July 29, 2022, 4:00pm UTC](https://forums.unrealengine.com/t/how-to-use-wave-function-collapse-plugin/617245 "2022-07-29T16:00:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xilieve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xilieve](https://forums.unrealengine.com/u/xilieve)\
**Post date:** [July 29, 2022, 4:00pm UTC](https://forums.unrealengine.com/t/how-to-use-wave-function-collapse-plugin/617245/1 "2022-07-29T16:00:14Z")

</div>

I’ve been learning about procedural generation methods and making a dungeon generation tool with what i have learned. I decided to tackle using wave function collapse to generate the surfaces (walls, floors and ceilings). I’m trying to activate the wave function collapse plugin for ue5 and experiment with it to see what it can do and learn from it. problem is it doesn’t seem to have any starter levels or content of any kind in the content browser. I assume that I’m missing something in the process because I’ve come across a few other forums now that have said to go through the sample levels to see how things are done. so do I need to download that separately? is their a specific place that I have to download that from? Because I couldn’t find anything online or in the marketplace. or is the sample no longer available for some reason? am I best off to attempt making my own system?

---

<div class="post-metadata">

**Author:** ![BlenderGamer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlenderGamer](https://forums.unrealengine.com/u/BlenderGamer)\
**Post date:** [September 14, 2022, 11:50am UTC](https://forums.unrealengine.com/t/how-to-use-wave-function-collapse-plugin/617245/2 "2022-09-14T11:50:28Z")

</div>

Hi, you may have a look at:

> [@How can I use the Wave Function Collapse functionality?](https://forums.unrealengine.com/t/how-can-i-use-the-wave-function-collapse-functionality/544318/5):
>
> I did manage to figure out what to do to use this plugin. As a note [BloodyPun] up top did answer this it was just hard to understand for me, I’m not an expert in using unreal so it took me a lot longer then i would have wanted to figure out how to use this plugin. so anyone who is looking to mess around with this here are the steps that I have found. 1: enable the plugin, under the edit menu go to plugins, then type in wave function collapse and enable the plugin. 2: reveal the sample conte…

It helped me start. There are maps in the content of the plugin, with samples. But I wonder if the samples are there as an exemple or for the algo to determine the authorized neighbours.

However, as said in the post: Instantiate the WFC editor widget. Then, use it in a map: set the size, samples, and press collapse. The result will be spawn at 0,0,0 (for me). Anyway, use the outliner to find it in case. Start small. My PC is trash, and was on its kness quickly with bigger structures. WFC is a np algorithm if I understood it well, so it can become crazy expensive really quick ^^  
Hope it helps
