- Home /
Question by
Pawl · Aug 17, 2019 at 10:59 PM ·
cameradebug.drawline
Debug.DrawLine multiple cameras issue
I'm using Debug.DrawLine
with Gizmos enabled in the Game View, but I'm currently using 3 different cameras in my game (one for UI, Backgrounds, and Level) and I see my lines being drawn three times slightly differently, one for each camera.
Is there a way I can specify a camera target or ensure the lines are only drawn to Camera.main
?
Thanks!
Comment