How does Unity draw the lines in Gizmos.DrawLine? I am curious because I am trying to draw a set of lines with antialiasing, and have failed repeatedly, and keep staring and the Gizmo line that presents great AA by default.
I have tried OpenGL, LineRenderer and the GraphicsRenderer, and have failed to reproduce the effect that the Gizmo line offers.
Any help is welcome!
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
2 People are following this question.
using OpenGl to render line works only in Editor not in web player
Drawing a line in a sprite
Line Collision Detection for 2D Game
how to render 3d line on top everything else in the scene?
Need help fixing an error. Using raycast to mimic laster beam but no collider, Line Renderer, Raycast Collider.