How to make Debug.Drawray visible in game?
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);
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612064708im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
DrawRay Hits but RayCast does not 1 Answer
RayCast2D and RayDraw errors 0 Answers