文档

Unity Engine


User Manual

Script Reference

Unity Engine


Lens Flare component reference

Explore the properties in the Lens Flare component to create a lens flare with a Flare asset.
阅读时间1 分钟最后更新于 23 天前

Explore the properties in the Lens Flare component to create a lens flare with a Flare asset.

Property:

Function:

FlareThe Flare asset to render.

Note: The other properties in the Lens Flare Inspector are stored in this Flare asset. They are not stored in the Lens Flare component.
ColorThe color to tint the Flare to. You can use this to make the lens flare better fit the Scene's mood.
BrightnessThe size and brightness the lens flare appears. If you use a very bright lens flare, make sure its direction fits with your Scene's primary light source. Can only affect properties that Flare has enabled.
Fade SpeedThe speed at which Unity fades the lens flare in and out.
Ignore LayersA mask that determins which Layers can see the lens flare.
DirectionalIndicates whether Unity orients the Flare along the positive z-axis of the GameObject. It appears as if it was infinitely far away, and does not track the GameObject's position, only the direction of its z-axis.