Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Lines and trails

How to render lines, trails, and billboards.
Read time 1 minuteLast updated 4 days ago

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.
Unity uses specialized components to configure and render lines, trails, and billboards.

Topic

Description

Drawing linesTechniques for rendering individual lines in 3D space, and applying materials to those lines.
Rendering trailsTechniques 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 componentYes.Yes.Yes.
Trail Renderer componentYes.

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