Unity 2022.3.16f1
URP 14.0.9
I have noted that in Game Mode the lines dawn by Debug.DrawRay() from my Player are doubled.
I have in an Update():
Debug.DrawRay(Player.transform.position, Player.transform.forward * rayLength, Color.blue);
Debug.DrawRay(Player.transform.position, Player.transform.right * rayLength, Color.blue);
Debug.DrawRay(Player.transform.position, -Player.transform.right * rayLength, Color.blue);
Debug.DrawRay(Player.transform.position, Quaternion.AngleAxis(45, Player.transform.up ) * Player.transform.forward * rayLength, Color.magenta, 0);
Debug.DrawRay(Player.transform.position, Quaternion.AngleAxis(-45, Player.transform.up ) * Player.transform.forward * rayLength, Color.magenta, 0);
In the Scene Editor, it looks great (screenshot left), in the Game Mode (screenshot right) the lines are doubled and I wonder if this a bug, or if I’m doing something wrong.
Screenshot: https://ibb.co/mGJxMyz