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.
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.
“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.