文档

Unity Engine

Unity Engine

enabled

Whether this Scene is enabled for inclusion in the build.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public bool enabled { get; set; }

Remarks

Set to true when the Scene is enabled for inclusion in the Build Profiles window. See EditorBuildSettings.scenes for an example of how to use this class. Additional Resources: EditorBuildSettingsScene.