Version: 2021.3
public string[] scenes ;

描述

The Scenes to be included in the build.

If empty, the currently open Scene will be built. Paths are relative to the project folder (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.