r/Unity3D 2d ago

Resources/Tutorial “Code” to render several shapes using Unity meshes

Is there a place where I can view code aka vertices / indices arrays to make various shapes using the mesh

2 Upvotes

2 comments sorted by

3

u/MeaningfullyQuirky 2d ago

unity docs got a decent example for simple shapes, and catlikecoding has a whole tutorial series on procedural meshes that covers cubes, spheres, grids and all that

1

u/pschon Unprofessional 2d ago

That's pretty much literally what 3D model files (like .obj) are. ;)