private static DoDrawAAPolyLine ( Color colors, Vector3 points, int actualNumberOfPoints, |
||
colors | Color | |
points | Vector3 | |
actualNumberOfPoints | int | |
lineTex | ||
width | float | |
alpha | float | |
Результат | void |
private static void DoDrawAAPolyLine(Color[] colors, Vector3[] points, int actualNumberOfPoints, Texture2D lineTex, float width, float alpha)
{
if (Event.current.type == EventType.Repaint)
{
HandleUtility.ApplyWireMaterial();
Color defaultColor = new Color(1f, 1f, 1f, alpha);
if (colors != null)
{
for (int i = 0; i < colors.Length; i++)
{
colors[i] *= defaultColor;
}
}
else
{
defaultColor *= s_Color;
}
Internal_DrawAAPolyLine(colors, points, defaultColor, actualNumberOfPoints, lineTex, width, matrix);
}
}