以下の内容はhttps://baba-s.hatenablog.com/entry/2025/03/13/192119より取得しました。


【Unity】EditorBuildSettingsScene.GetActiveSceneList の使用例

概要

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 );
}

このように記述できる。




以上の内容はhttps://baba-s.hatenablog.com/entry/2025/03/13/192119より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14