文档

Unity Engine

Download Unity

Unity Engine

Lighting configuration workflow

Resources for selecting a render pipeline, configuring global lighting settings, and adding lighting elements.
阅读时间1 分钟最后更新于 5 天前

To set up lighting in Unity, follow these steps:
  1. Choose a render pipeline
  2. Configure lighting
  3. Fine-tune your scene lighting

Choose a render pipeline

重要
The Built-In Render Pipeline is deprecated and will be made obsolete in a future release.
It remains supported, including bug fixes and maintenance, through the full Unity 6.7 LTS lifecycle.
Unity provides render pipelines that differ in customization and lighting features:
For more information on render pipeline selection, refer to choose a render pipeline.

Configure lighting

  1. Choose baked GI, realtime GI, mixed baked and realtime GI, or opt for no GI.
    In URP, you can instead calculate indirect lighting entirely at runtime with Surface Cache Global Illumination.
  2. Choose one of the following Lighting Modes:
    • Baked Indirect
    • Subtractive
    • Shadowmask
    • Distance Shadowmask
    For more information, refer to Lighting Mode.

Fine-tune your scene lighting

To fine-tune your scene lighting, follow these tasks based on project requirements:
  1. Optionally configure emissive surfaces with baked GI or realtime GI.
  2. Add baked, realtime, or custom Reflection Probes.
  3. If a GI mode is set, add Light Probes. You can also add Light Probe Proxy Volumes (LPPVs).
To find, inspect, and batch-edit lighting objects across your scene, use Lighting Search.

Additional resources