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.
プロパティ | 機能 |
---|---|
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 軸の方向のみに沿って表示されます。 |