This version of Unity is unsupported.

LightingSettings.respectSceneVisibilityWhenBakingGI

Switch to Manual
public bool respectSceneVisibilityWhenBakingGI;

Description

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

This property requires that a SceneView be present in the editor for it to have any effect; this includes while in batch mode. See EditorWindow and SceneVisibilityManager for more information.