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