Version: 2021.3
言語: 日本語
Flare asset
Flare Layer component

Lens Flare component

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.

Note: This workflow is compatible only with the Built-in Render Pipeline. For similar functionality in other render pipelines, see Lens flares and halos.

Using a Lens Flare component

  • 新しい GameObject を作成します (GameObject > Create Empty)。
  • Inspector で、Add Component > Effects > Lens Flare をクリックします。
  • Flare AssetFlare プロパティに割り当てます。
  • If you want a Camera to see lens flares, attach a Flare Layer component to the Camera’s GameObject.
  • 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 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.
Color フレアの色合いを決める色。シーンの雰囲気に合わせて、レンズフレアの色合いを調整することができます。
Brightness The 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 Speed Unity がレンズフレアをフェードイン、アウトするスピード。
Ignore Layers どのレイヤーにレンズフレアを表示するかを決定するマスク。
Directional フレアの方向をゲームオブジェクトの正の Z 軸方向に定めることを示します。これを有効にすると、フレアはあたかも無限に遠くにあるかのように見え、ゲームオブジェクトの位置を追跡せず、Z 軸の方向のみに沿って表示されます。
Flare asset
Flare Layer component