Create Sprite / Mesh in Script (2D) at runtime

Hello there,
I’m working on a simple 2D townbuilding-simulation game, for my first “big” projekt that I want to finish.
At the moment I’m using a 2d grid where i can place existing buildings, which i created in photoshop. But i want, that the user can build houses and more stuff itself in the game, not using my house-templates.

I probably know, i have to do it with meshes (Unity - Scripting API: Mesh), but I’m not the best programmer (just have startet with it for few months), so I don’t really know how to use them in script.

Could someone may help me, may give me a short example, from which I can learn?

Already thanks for reading :slight_smile:
And I’m sorry for my bad english :frowning:

Seems like triangulation would be the place to start.

–Eric

1 Like

Thanks alot, that was what i have been looking for. :slight_smile: