ドキュメント

Unity Engine

Unity Engine

pixelLightCount

The maximum number of pixel lights that should affect any object.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static int pixelLightCount { get; set; }

Remarks

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;public class Example : MonoBehaviour{ void Start() { // Use at most one pixel light for every object QualitySettings.pixelLightCount = 1; }}
Additional Resources: Quality Settings.