- Home /
Which Gizmo is Debug.DrawLine?
I want to have Debug.DrawLine visible in the game view but no other gizmos, which gizmo category is Debug.DrawLine under, I only want to enable that one.
Thanks in advance.
Answer by Bunny83 · Jul 28, 2015 at 11:14 AM
"Gizmo" only referes to things drawn in OnDrawGizmo or OnDrawGizmosSelected. Debug.DrawLine is not related to Gizmos. You might want to use Gizmos.DrawLine inside one of the mentioned callbacks. "OnDrawGizmo" will be always drawn in the editor while OnDrawGizmosSelected is only drawn when the object is selected in the hierarchy. Selecting the parent count as well.
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
How to debug drawing plane? 2 Answers
Debug.DrawLine doesn't work 1 Answer