概要
var scenePaths = EditorBuildSettings.scenes .Where( x => x.enabled ) .Select( x => x.path ) .ToArray() ; foreach ( var scenePath in scenePaths ) { Debug.Log( scenePath ); }
上記のような処理を
var scenes = EditorBuildSettings.scenes; var scenePaths = EditorBuildSettingsScene.GetActiveSceneList( scenes ); foreach ( var scenePath in scenePaths ) { Debug.Log( scenePath ); }
このように記述できる。