Draws a solid triangle.
float3
a
First corner of the triangle.
b
Second corner of the triangle.
c
Third corner of the triangle.
Draw.xy.SolidTriangle(new float2(-0.43f, -0.25f), new float2(0, 0.5f), new float2(0.43f, -0.25f), color);
If you are going to be drawing lots of triangles it's better to use Draw.SolidMesh instead as it will be more efficient.
Draw.SolidMesh
Draw.WireTriangle
This method cannot be used inside of Burst jobs. See Drawing from a Job/ECS instead.
Color
color
Color of the object