How to call Wave Function Collapse Function

Ok so, I am planning to make a game that involves procedurally generated dungeons and Ive learned that Wave Function Collapse will probably be the best thing to use for that. Now I have got the Unreal Engine Plugins and it works, however I can only build a new procedurally generated structure when I click on “Collapse” in the editor. I am however trying to call that “Collapse” Button in the Levels Beginplay Event. Anybody know how to do this?