Quantcast
Channel: Answers for "Debug.DrawRay - Can't get it to work"
Browsing latest articles
Browse All 5 View Live

Answer by pyro

From the script reference:// Draws a 10 meter long green line from the position // forward along the transform's z-axis. function Update () { var forward = transform.TransformDirection(Vector3.forward)...

View Article


Answer by Tolling87

The reason it would not show is that Debug.DrawRay does not draw anything when assigned the mathf.infinity. So remember when debugging, always assign values on it.

View Article


Answer by Geejayz

It could be something as simple as you don't have Gizmos turned on in the GUI. Hopefully given the dates above the OP has already resolved this. Just adding this as it turned out to be my issue.

View Article
Browsing latest articles
Browse All 5 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>