기술 자료

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