Version: 2021.3

EditorBuildSettingsScene

class in UnityEditor

切换到手册

描述

Represents entries in the Scenes list, as displayed in the Build Settings window. This class contains the Scene path of a Scene and an enabled flag that indicates whether the Scene is enabled in the Build Settings window or not.

You can use this class in combination with EditorBuildSettings.scenes to populate the list of Scenes included in the build via script. This is useful when you create custom editor scripts to automate your build pipeline.

有关示例脚本,请参阅 EditorBuildSettings.scenes

变量

enabled是否在 Build Settings 窗口中启用了此场景。请参阅 EditorBuildSettings.scenes,查看如何使用此类的示例。另请参阅:EditorBuildSettingsScene、EditorBuildSettings.scenes。
pathEditor Build Settings 场景列表中列出的场景的文件路径。请参阅 EditorBuildSettings.scenes,查看如何使用此类的示例。另请参阅:EditorBuildSettingsScene、EditorBuildSettings.scenes。