Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

var flare: Flare;
Flare flare;
flare as Flare

Description

The flare asset to use.

	// 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