Light.type 类型

var type : LightType

Description描述

The type of the light.

灯光的类型。

可以是 LightType.Spot, LightType.Directional, LightType.Point.

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		light.type = LightType.Spot;
	}
}
// Make the light a spot light
//使灯光的类型为聚光灯

light.type = LightType.Spot;
Page last updated: 2011-3-30