ドキュメント

Unity Engine

Unity Engine

scenes

The Scenes to be included in the build.
読み終わるまでの所要時間 1 分最終更新 20日前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public string[] scenes { readonly get; set; }

Remarks

If empty, the currently open Scene will be built. Paths are relative to the project folder, for example "Assets/MyLevels/MyScene.unity". If any scene is currently open and has unsaved changes, the editor will ask the user to save these changes before building - or save changes automatically, if Application.isBatchMode is true.
Additional Resources: EditorBuildSettings.scenes