public static float GetAlpha()
{
return (!GUI.enabled ? 0.7f : 1f);
}
public static void DrawLine(float x1, float y1, float x2, float y2, Color c) { if (Event.current.type == EventType.Repaint) { HandleUtility.ApplyWireMaterial(); GL.Begin(1); GL.Color(new Color(c.r, c.g, c.b, c.a * AudioMixerDrawUtils.GetAlpha())); AudioMixerDrawUtils.Vertex(x1, y1); AudioMixerDrawUtils.Vertex(x2, y2); GL.End(); } }