help, I would like a standard prefabcube cut at 45° through the middle, keeping only half the triangles and adding 2 triangles to the long side.
There isn’ t one in the asset store and on the forum, any chance someone can edit the standard create cube mesh to delete 2 vertices, 6 triangles, and to add 2 new triangles? With all the standard UV mapping etc because I can’ t even find a working code to create the cube from script.
The UV mapping depends on what texture you want to use, but anyway I recomend you that you study some geometry. Anyone should be able to do at least these four things: plan a tree, write a book, have a child, write a sliced cube mesh code.
It’d be far more instructive for you to create your own model. Do this in the OBJ model format, see:
This is a simple text file. You’ll have 6 lines that start with the letter ‘v’, which define the 6 corners, and 8 lines that start with ‘f’ and define the triangles. Try that. Then, your stretch goal is to add texture coordinates and normals.