QualitySettings.pixelLightCount 像素光源数

static var pixelLightCount : int

Description描述

The maximum number of pixel lights that should affect any object.

影响任意物体的最大像素光源数。

If there are more lights illuminating an object, the dimmest ones will be rendered as vertex lights.

如果有更多的光照亮一个物体,最暗的一个将作为顶点光源被渲染。

Use this from scripting if you want to have finer control than offered by quality settings levels.

如果你想更好的控制而不是使用质量设置等级,从脚本中使用这个。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		QualitySettings.pixelLightCount = 1;
	}
}
// Use at most one pixel light for every object
//为每个物体使用最多一个像素光

QualitySettings.pixelLightCount = 1;
Page last updated: 2011-3-13