Gizmos and Lines in Build

Is there any way to get gizmos, such as lines, to be visable in the final project? I am using Debug.DrawRay to draw some cool lines on the screen, but they’re no visable in the build. Is there a different DrawRay or DrawLine I should be using?

I can see this was posted back a time, but this is the exact question I’m trying to figure out now.

There is something in the Debug.DrawLine about, “If gizmos are displayed in Game View, then DrawLine will be too”, but I’ve scoured the settings and can’t see anything for either of them.

If you want to see them in game view, click on the gizmos button in the toolbar of the game view.

Unfortunately, clicking it has no affect for me.

I guess that answers my next question:
Is there an option for gizmos and Debug.DrawLine to show up in a build…No. :smile:

I suppose LineRenderer will have to do?

Ah you are talking about a deployed player. No you cant use Debug.DrawLine there. Use LineRenderer instead.