Create a lens flare
Create a flare and apply it to a lens flare component, then configure it to be visible by cameras.
Read time 2 minutesLast updated a month ago
Create a flare and apply it to a lens flare component, then configure it to be visible by cameras.
Apply a Flare asset
-
Assign the Flare asset to a Light component or a Lens flare component.
- If you assign it to the Flare property of a Light component, Unity automatically tracks the position and direction of the Light and uses those values to configure the appearance of the lens flare.
- If you assign it to the Flare property of a Lens flare component, you can use the Lens Flare component to configure additional values for more precise control.
-
If you want a Camera to see lens flares, select the camera then select Add Component > Flare Layer.
-
To see the lens flare effect in the, enable the Effect toggle in the Scene View toolbar and, in the drop-down, enable Flares.Scene View
?
Create a lens flare with the Lens Flare component
-
Create a new(menu bar: GameObject > Create Empty).GameObject
?
-
In the Inspector, click Add Component > Effects > Lens Flare.
-
Assign a Flare Asset to the Flare property.
-
If you want a Camera to see lens flares, select the camera then select Add Component > Flare Layer.
-
To see the lens flare effect in the Scene View, enable the Effect toggle in the Scene View toolbar and, in the drop-down, enable Flares.

Enable the Effect toggle to view lens flares in the Scene view