GoSpline.drawGizmos C# (CSharp) Method

drawGizmos() public static method

helper for drawing gizmos in the editor
public static drawGizmos ( Vector3 path, float resolution = 50 ) : void
path Vector3
resolution float
return void
    public static void drawGizmos( Vector3[] path, float resolution = 50 )
    {
        // horribly inefficient but it only runs in the editor
        var spline = new GoSpline( path );
        spline.drawGizmos( resolution );
    }

Same methods

GoSpline::drawGizmos ( float resolution ) : void

Usage Example

Exemplo n.º 1
0
    /// <summary>
    /// helper for drawing gizmos in the editor
    /// </summary>
    public static void drawGizmos(Vector3[] path, float resolution = 50)
    {
        // horribly inefficient but it only runs in the editor
        var spline = new GoSpline(path);

        spline.drawGizmos(resolution);
    }
All Usage Examples Of GoSpline::drawGizmos