Runtime creation of "blocks" for walls that are drawn in by user.

I am interested in having a feature in-game/runtime that allows the client to draw and create an enclosed drawing and then populate that enclosed space with square blocks (tiny to round off edges) to simulate a wall.

I’ve watched some “random dungeon generator” tutorials (like

) that talk about the creation of walls but im wondering how best to approach the drawing and placement in a specific locale.

Is there a tutorial about that might explain how to best do this? Or another method thats better?

The method you choose will be 100% tied to what type of game and interaction you are trying to do. Start simple, make something that fills in a grid with blocks (either 2D or 3D, your choice, your game) when you drag the finger/mouse, and see what that gets you. Learn from that process and extend it to do the next part of your problem.

Good advice. I have been trying to find some tutorials on the subject and I think I’ve got something plotted out but still need to find some better examples so I understand the process. The linked video does a lot of what I wanted (creates mesh that I can place texture on but I need to see how I can take out the relevant parts and use what I need. Specifically I’m going to be allowing them to draw blobs on the 2d surface and then create a mesh within that blob. Something like the asset store plugins that allow you to draw/manipulate poly’s but… in runtime, not the editor.