Hey, I am trying to make it to where I can draw a 2D shape with my mouse, and then have it be filled in with a 3D mesh. I looked at the Mesh class documentation, and a lot of tutorials for it, but nothing is helping me.
Could anyone explain to me how I would do this? Thanks!
Mesh building is very complicated to do. Your going to have to build a min program to draw any kind of mesh. It’s not something that someone can explain in a few sentences or paragraph. I’ve tried building a similar tool a while back and its pretty hardcore to learn. Simple Mesh manipulations - Unity Engine - Unity Discussions
A lot of it has to do with arrays, and getting points to iterate and connect in order. Once I got a bot to extrude, it was a remarkable achievement. I would start with building just one triangle, then once you got that, try building a 2D square, then a 2D mesh, then 3D mesh.
But there might be just be a package you can buy that will do what you want. It would be well worth it
compared to the huge amount of learning you will have to do.
@roger0 Thanks for the link & advice. When trying to learn the whole mesh thing today I agree its super complex, I did find an asset earlier that did exactly what I wanted, maybe I’ll just break down soon and buy it
I think the concept of creating meshes isn’t too complicated. Creating a couple of vertices triangles and uvs isn’t black magic it’s actually pretty straightforward. I had a bit of problems with winding order but after some testing I got results pretty quick. I found a lot of people saying it’s complex but I disagree after trying myself. It’s useful if you have some programming experience I must add.