LineDrawer.Line.Set_IfDifferent(UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Color, UnityEngine.Color, float)

Here are the examples of the csharp api LineDrawer.Line.Set_IfDifferent(UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Color, UnityEngine.Color, float) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 View Source File : LineDrawer.cs
License : MIT License
Project Creator : dag10

protected bool Draw_Line(Vector3 start, Vector3 end, Color colorStart, Color colorEnd, float lineWidth = DefaultLineWidth)
    {
        // Create up a new line (unless it's already created)
        while (lineData.LineIndex >= lineData.Lines.Count)
        {
            lineData.Lines.Add(new Line());
        }

        // Set it
        bool needsUpdate = lineData.Lines[lineData.LineIndex].Set_IfDifferent(transform.InverseTransformPoint(start), transform.InverseTransformPoint(end), colorStart, colorEnd, lineWidth);

        // Inc out count
        ++lineData.LineIndex;

        return needsUpdate;
    }