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。
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961