- Home /
Debug.DrawRay doesn't show up, but gizmos are on and duration is specified.
After the new update debug rays just stopped working. Gizmos are on in game view. I operate on the HD render pipeline. I specify origin, direction, color (one that is visible), duration (over a second). What are the things I could be forgetting about?
Hello, you didn't show any code, so it's hard to guess. Are you drawing your gizmos from the OnDrawGizmosSelected() or OnDrawGizmos() ?
Gizmos do not matter here. He's drawing rays with Debug.DrawRay which you can use in a regular method, it doesn't have to be OnDrawGizmos or OnDrawGizmosSelected. $$anonymous$$y guess is, it has something to do with HD render pipeline as quite a few things are broken when using it.
I can render rays in the HD pipeline exactly like I did before. I think his problem is quite uncommon, for this simple method works for me (with the default Unity HD pipeline):
void Update ()
{
Debug.DrawRay(Vector3.zero, Vector3.forward, Random.ColorHSV());
}
Answer by FredTuna · Oct 09, 2018 at 04:10 AM
This will be fixed in 2018.3: https://forum.unity.com/threads/cant-display-gizmos-in-game-window-when-using-srp.554533/
Your answer
