Flare 眩光

Inherits from Object

A flare asset.


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.


using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public Flare newFlare;
	public void Awake() {
		light.flare = newFlare;
// Expose a reference to a flare in the inspector
var newFlare : Flare;

// Assign the flare
light.flare = newFlare;

参考:LensFlare 类.

Inherited members继承成员

Inherited Variables继承变量

Inherited Functions继承函数

Inherited Class Functions继承类函数

Page last updated: 2010-12-13