# respectSceneVisibilityWhenBakingGI

> When Unity is precomputing or baking Global Illumination, respect the Scene Visibility setting of a [[GameObject] with a MeshRenderer or Terrain component.

## Definition

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

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

### Remarks

This property requires that a [SceneView](/engine/6000.0/script-reference/unityeditor/sceneview.md) be present in the editor for it to have any effect; this includes while in [batch mode](/engine/6000.0/script-reference/unityengine/application/isbatchmode.md). See [EditorWindow](/engine/6000.0/script-reference/unityeditor/editorwindow.md) and [SceneVisibilityManager](/engine/6000.0/script-reference/unityeditor/scenevisibilitymanager.md) for more information.
