In the Built-in Render Pipeline, if you want a Camera to see lens flares, you must attach a Flare Layer component to the Camera’s GameObject.
Note: This workflow is compatible only with the Built-in Render Pipelne. For similar functionality in other render pipelines, see Lens flares and halos.
FlareLayer