文档

Unity Engine


User Manual

Script Reference

Unity Engine


Introduction to lens flare effects

Understand how Unity manages lens flares, which simulate the effect of lights refracting inside a camera lens.
阅读时间1 分钟最后更新于 1 个月前

Understand how Unity manages lens flares, which simulate the effect of lights refracting inside a camera lens. Use them to represent bright lights or to add a bit more atmosphere to your Scene.

Flares

A Flare asset allows you to create and configure the appearance of lens flares.
Flares work by containing several Flare Elements on a single Texture. Within the Flare, you pick and choose which Elements you want to include from any of the Textures.

Displaying flares

A Lens Flare component displays a lens flare that is configured by a Flare asset.
You can display a Flare asset with a Light component. If you do this, Unity automatically tracks the position and direction of the Light and uses those values to configure the appearance of the lens flare.
Use this component instead to configure the values of the lens flare yourself, which gives you more precise control.