2
\$\begingroup\$

I want draw new shapes in Sence for example I want Debug.DrawSphere can I Debug.DrawCollider? Is possible that I Debug.DrawSphereCast

\$\endgroup\$
2
\$\begingroup\$

You could use unity's Gizmos to draw cubes and spheres. Script Reference.

void OnDrawGizmos()
{
    Gizmos.color = Color.red;
    Gizmos.DrawSphere(this.transform.position, 1);
}
| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ @nights For drawing shapes in the build, you could use ALINE. \$\endgroup\$ – Iggy Jun 25 at 8:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.