Answers for "'DrawLine' does not contain a definition for 'canDraw unity"

C#
2

unity drawline

public Transform target;

    void OnDrawGizmosSelected()
    {
        if (target != null)
        {
            // Draws a blue line from this transform to the target
            Gizmos.color = Color.blue;
            Gizmos.DrawLine(transform.position, target.position);
        }
    }
Posted by: Guest on February-01-2020

Code answers related to "'DrawLine' does not contain a definition for 'canDraw unity"

C# Answers by Framework

Browse Popular Code Answers by Language