Quantcast
Channel: Questions in topic: "drawray"
Viewing all articles
Browse latest Browse all 92

How to make Debug.Drawray visible in game?

$
0
0
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);

Viewing all articles
Browse latest Browse all 92

Trending Articles