Light.flare 耀斑

var flare : Flare


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