- Home /
OnDrawGizmos Not Drawing
Hi there,
As the title suggests, I'm having trouble with Gizmo.DrawWireSphere(), it's just simply not drawing, I know the points given exist as they are the points where thrust its being added to make it hover and its hovering fine, I just want a visual representation of this for debugging.
My Vector3 Co-ords, These are initialised at top of script
frontLeft = transform.TransformPoint(-width / 2, -height / 2, length / 2);
frontRight = transform.TransformPoint(width / 2, -height / 2, length / 2);
backLeft = transform.TransformPoint(-width / 2, -height / 2, -length / 2);
backRight = transform.TransformPoint(width / 2, -height / 2, -length / 2);
My onDrawGizmos
void onDrawGizmos()
{
Gizmos.color = Color.green;
Gizmos.DrawWireSphere(frontLeft, 1f);
Gizmos.DrawWireSphere(frontRight, 5f);
Gizmos.DrawWireSphere(backLeft, 100f);
Gizmos.DrawWireSphere(backRight, 2000f);
}
Does anyone have any idea why they might not be displaying? I've varied the sizes to see if they were just drawn too small but that doesn't seem to be the case, they're just not displaying.
Also, I've made sure Gizmo's are turned on and pretty much all the show gizmo options are checked.
Thank you for reading.
Your answer
Follow this Question
Related Questions
Can we hide AudioSource gizmos? 4 Answers
Debug.draw rect 2 Answers
Determine length of Debug.DrawRay ray 3 Answers
Which Gizmo is Debug.DrawLine? 1 Answer
How do I keep Debug.Log in archive/release iOS builds? 0 Answers