Answers for "draw sphere gizmo unity"

C#
1

draw sphere gizmo unity

void OnDrawGizmos()
    {
        // Draw a yellow sphere at the transform's position
        Gizmos.color = Color.yellow;
        Gizmos.DrawSphere(transform.position, 1);
    }
Posted by: Guest on November-05-2021

C# Answers by Framework

Browse Popular Code Answers by Language