Light.flare 耀斑

var flare : Flare

Description描述

The flare asset to use for this light.

用于这个灯光的耀斑资源。

参见: LensFlare.flare

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public Flare newFlare;
	void Awake() {
		light.flare = newFlare;
	}
}
// Expose a reference to a flare in the inspector
//暴露一个耀斑引用在检视面板
var newFlare : Flare;

// Assign the flare
//指定一个耀斑
light.flare = newFlare;
Page last updated: 2011-3-30