Version: 2023.1

LightingSettings.respectSceneVisibilityWhenBakingGI

切换到手册
public bool respectSceneVisibilityWhenBakingGI ;

描述

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.