PathDefinition.OnDrawGizmos C# (CSharp) Method

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void
    public void OnDrawGizmos()
    {
        if(Points == null || Points.Length < 2)
            return;
        for(var i = 1; i < Points.Length; i++) {
            Gizmos.DrawLine(Points[i-1].position, Points[i].position);
        }
    }