Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

draw sphere gizmo unity

void OnDrawGizmos()
    {
        // Draw a yellow sphere at the transform's position
        Gizmos.color = Color.yellow;
        Gizmos.DrawSphere(transform.position, 1);
    }
 
PREVIOUS NEXT
Tagged: #draw #sphere #gizmo #unity
ADD COMMENT
Topic
Name
9+2 =