Version: 2022.3
public float fadeSpeed ;

描述

光晕的淡化速度。

另请参阅:Lens flare componentflare assets

using UnityEngine;

public class Example : MonoBehaviour { // Increments the strenght of the Lensflare lf when the Transform tr // gets closer to the Lens flare

public LensFlare lf; public Transform tr;

void Start() { lf.fadeSpeed = 0.5f; } }