Gizmos: Special voodoo?

I’m not sure if I’m perhaps using Gizmos incorrectly, but I’m not able to draw using neither Gizmos.DrawWireSphere nor Gizmos.DrawLine (I’ve used Gizmos.DrawIcon do verify that the code is executed and that the co-ordinates are correct).

I’ve had some success drawing lines using Debug.DrawLine, however I’m observing some very strange behaviour:

  • When I’m drawing my icons using Gizmos.DrawIcon, I can’t see the lines.
  • If I stop drawing my icons, I can see the lines until I click the scene view.

What’s going on here? Anyone experienced something similar?

Ok turns out to somehow be related to Gizmos.DrawGUITexture. It seems that calling this function will mess up all other Gizmos calls following in same script - except DrawIcon. DrawIcon will render with artefacts though.

Oh well. Time to form a testcase and submit a bug report…

Ah.

I see!

(I actually have no clue. I just want this thread to get attention)