LensFlare.flare Manual     Reference     Scripting  
Scripting > Runtime Classes > LensFlare
LensFlare.flare

var flare : Flare

Description

The flare asset to use.

See Also: Lens flare component, flare assets.

JavaScript
// Assigns the flare of lf to this transforms light flare

var lf : LensFlare;
light.flare = lf.flare;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
public LensFlare lf;
void Example() {
light.flare = lf.flare;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

public lf as LensFlare

def Example():
light.flare = lf.flare