Lens Flares simulate the effect of lights refracting inside a camera lens. You can use them to represent bright lights or, more subtly, to add a bit more atmosphere to your Scene.
The easiest way to set up a lens flare is to assign a Flare Asset to the Flare property of a Light. If you do this, Unity automatically tracks the position and direction of the Light. To get more precise control, use this component.
To manually create a lens llare:
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.
|Flare||The Flare to render. It is this Asset, and not the Lens Flare component, that controls most of the lens flare’s appearance. To customize the lens flare’s appearance, open the assigned Flare Asset in the Inspector. Here, you can view and edit any of the Flare’s properties. For information on what each property controls, see the Flare documentation. Unity includes pre-configured Flares for you to use in the Standard Assets package.|
|Color||The color to tint the Flare to. You can use this to make the lens flare better fit the Scene’s mood.|
|Brightness||The size and brightness the lens flare appears.|
|Fade Speed||The speed at which Unity fades the lens flare in and out.|
|Ignore Layers||A mask that determins which Layers can see the lens flare.|
|Directional||Indicates 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.|