Nez.Portable/ECS/Components/Renderables/LineRenderer.cs
/// <summary>
/// adds a point to the line. If start/end widths are not set each point should have a width set here. If start/end colors
/// are not set a color should be set as well.
/// </summary>
/// <returns>The point.</returns>
/// <param name="point">Point.</param>
/// <param name="width">Width.</param>
/// <param name="color">Color.</param>
adds a point to the line. If start/end widths are not set each point should have a width set here. If start/end colors
are not set a color should be set as well.
adds a point to the line . If start / end widths are not set each point should have a width set here . If start / end colors are not set a color should be set as well .
public LineRenderer addPoint(Vector2 point, float width, Color color)
        {
            _maxWidth = System.Math.Max(_maxWidth, width);
            _points.ensureCapacity();
            _points.buffer[_points.length].position = point;
            _points.buffer[_points.length].width = width;
            _points.buffer[_points.length].color = color;
            _points.length++;
            _areVertsDirty = true;
            return this;
        }
public LineRenderer addPoint ( Vector2 point , float width , Color color ) { _maxWidth = System . Math . Max ( _maxWidth , width ) ; _points . ensureCapacity ( ) ; _points . buffer [ _points . length ] . position = point ; _points . buffer [ _points . length ] . width = width ; _points . buffer [ _points . length ] . color = color ; _points . length ++ ; _areVertsDirty = true ; return this ; }
adds a point to the line.
adds a point to the line .
None
point
Vector2
None
width
float
None
color
Color
None