Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Lens flares

How to create lens flare.
Read time 1 minuteLast updated 20 days ago

Resources and techniques for creating lens flares lighting effects, which can add atmosphere to your scene.

Lens flare

Topic

Description

Introduction to lens flare effectsUnderstand how Unity manages lens flares, which simulate the effect of lights refracting inside a camera lens.
Lens flares in URPResources and techniques for creating and configuring lens flares in the Universal Render Pipeline (URP).
Lens flares in the Built-In Render PipelineResources and techniques for creating lens flares lighting effects in the Built-In Render Pipeline.

Render pipeline information

How you work with lens flare depends on the render pipeline you use.

Feature name

Universal Render Pipeline (URP)

High Definition Render Pipeline (HDRP)

Built-in Render Pipeline

Lens flaresYes

Use a Lens Flare (SRP) Data Asset and a Lens Flare (SRP) component, or a Screen Space Lens Flare override.
Yes

Use a Lens Flare (SRP) Data Asset and a Lens Flare (SRP) component, or a Screen Space Lens Flare override.
Yes

Use a Flare asset and, optionally, a Lens Flare component.