Documentation

Unity Engine

Download Unity

Unity Engine

LightRenderMode

How the Light is rendered.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Warning
Deprecated. LightRenderMode is deprecated and will be removed in a future release. In the Universal Render Pipeline (URP), it only affects which lights the Forward rendering path prefers when more lights reach an object than Per Object Limit allows.
public enum LightRenderMode

Remarks

In the Universal Render Pipeline (URP), this setting doesn't control whether a light is rendered per vertex or per pixel. In the URP Forward rendering path, set Lighting > Additional Lights in the URP Asset to render all additional lights per vertex or per pixel. Other URP rendering paths render all lights per pixel.
Additional Resources: light component.

Fields

Value

Description

AutoAutomatically choose the render mode.
ForcePixelForce the Light to be a pixel light.
ForceVertexForce the Light to be a vertex light.