Flare Inherits from ObjectA flare asset. Read more about flares in the components reference. The flare class has no properties. It needs to be setup up in the inspector. You can reference flares and assign them to a Light at runtime.
JavaScripts
// Expose a reference to a flare in the inspector
var newFlare : Flare; // Assign the flare light.flare = newFlare; using UnityEngine;
using System.Collections; public class example : MonoBehaviour { public Flare newFlare; void Awake() { light.flare = newFlare; } } import UnityEngine
import System.Collections class example(MonoBehaviour): public newFlare as Flare def Awake(): light.flare = newFlare Inherited members
Inherited Variables
Inherited Functions
Inherited Class Functions
|
