Documentation

Unity Engine

Download Unity

Unity Engine

ForceVertex

Force the Light to be a vertex light.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Field
  • 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.
ForceVertex = 2

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.
This option is good for background or distant lighting. Additional Resources: light component.