Version: Unity 6.5 (6000.5)
Language : English
Halo component reference
Drawing lines

Lines and trails

Important: The Built-In Render Pipeline is deprecated and will be made obsolete in a future release.
It remains supported, including bug fixes and maintenance, through the full Unity 6.7 LTS lifecycle.
For more information on migration, refer to Migrating from the Built-In Render Pipeline to the Universal Render Pipeline and Render pipeline feature comparison.

Unity uses specialized components to configure and render lines, trails, and billboards.

Topic Description
Drawing lines Techniques for rendering individual lines in 3D space, and applying materials to those lines.
Rendering trails Techniques for rendering trails that appear behind moving GameObjects, and applying materials to those trails.

Render pipeline information

How you work with lines and trails depends on the render pipeline you use.

Feature name Universal Render Pipeline (URP) High Definition Render Pipeline (HDRP) Built-in Render Pipeline
Line Renderer component Yes. Yes. Yes.
Trail Renderer component Yes.

You can also use VFX Graph to create a custom trail effect.
Yes.

You can also use VFX Graph to create a custom trail effect.
Yes.

Additional resources

Halo component reference
Drawing lines