public static HUMEditor.LineStyle Color(this HUMEditor.LineStyle style, Color color)
 {
     style.color = color;
     return(style);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Draws a line from one point to another, with a custom styling.
        /// </summary>
        public static void Line(this HUMEditor.Data.Render render, Vector2 startPoint, Vector2 endPoint, HUMEditor.LineStyle style)
        {
            Handles.BeginGUI();
            var col = Handles.color;

            Handles.color = style.color;
            Handles.DrawAAPolyLine(style.thickness, startPoint, endPoint);
            Handles.color = col;
            Handles.EndGUI();
        }
 public static HUMEditor.LineStyle Thickness(this HUMEditor.LineStyle style, int amount)
 {
     style.thickness = amount;
     return(style);
 }