---
title: bakeEnvironmentLighting
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/lightingsettings/bakeenvironmentlighting
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/lightingsettings/bakeenvironmentlighting.md
last_updated: 2026-11-17
generated_at: 2026-11-25T01:41:10.540Z
locale: en-us
---

# bakeEnvironmentLighting

> Determines whether Unity includes environment lighting in baked lightmaps and Light Probes.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public bool bakeEnvironmentLighting { get; set; }
```

### Remarks

When you set this property to `true`, the Baked Global Illumination system includes the environment lighting, such as the sky, in baked lightmaps and Light Probes.

When you set this property to `false`, baked lightmaps and Light Probes don't contain environment lighting. Choose `false` if a runtime Global Illumination solution provides the environment lighting instead. If a Scene has no Baked or Mixed Lights and no baked emission either, Unity doesn't generate lightmaps for it.

This property has no effect when [LightingSettings.bakedGI](/engine/7000.0/script-reference/unityengine/lightingsettings/bakedgi.md) is `false`.

When Unity serializes this `LightingSettings` object as a [Lighting Settings Asset](/engine/7000.0/manual/lighting-overview/lighting-reference/class-lighting-settings.md), this property corresponds to the **Bake Environment Lighting** property in the Lighting Settings Asset Inspector.

Additional Resources: [Lighting Settings Asset](/engine/7000.0/manual/lighting-overview/lighting-reference/class-lighting-settings.md), [LightingSettings.bakeRealtimeEmission](/engine/7000.0/script-reference/unityengine/lightingsettings/bakerealtimeemission.md).
