Hello. Is there any way to to make the Debug.DrawRay function visible in-game and not just in the editor?
Or what alternatives are there to the debug.drawray function?
This is the code i'm using and it's behaving exactly how i want it to.
Vector3 forward = spawn.transform.TransformDirection(Vector3.forward);
Debug.DrawRay(transform.position, forward * 20, Color.red, 0.1f);
↧