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;
最后修改:2011年3月30日 Wednesday 10:41