scenes
The Scenes to be included in the build.
Read time 1 minuteLast updated 5 days ago
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 _isBatchMode is true.
Additional Resources: _scenes