I am trying to make triangles in unity and I have had no luck. I saw some scripts but I couldn’t figured out what they meant. Is there just a simple way to make a cube a triangle or just anything a triangle?
Make anything a triangle? I think you might need to elaborate a bit more…
I mean how do i make a game object the shape of a triangle. I am trying to make a roof for a house and its a triangle roof.
Use a 3D modeling app.
–Eric
So theres no script I could attach to an object to make it a triangle?
You can make meshes from code using the Mesh class, if that’s what you mean.
–Eric
But where do we put that script?
Empty Oject?
btw. sorry for bumping old topic but I really need help.
Maybe you can create an empty object that represents the roof “Roof01”. Then you attach the script “RoofCreator” in the game object. The script may have a method that is called once and draws a bunch of triangles in this game object. So, you need to know how to draw the triangles, and how these triangles will be kept in the game object (as children objects? as something else?)
Regards,
How to make a triangle in Unity3D: