お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Closeフレアを使用する。
See Also: Lens flare component, flare assets.
// Assigns the flare of lf to this transforms light flare var lf : LensFlare; light.flare = lf.flare;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { public LensFlare lf; void Example() { light.flare = lf.flare; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): public lf as LensFlare def Example() as void: light.flare = lf.flare