Version: 2021.1
言語: 日本語
public static SceneManagement.Scene GetSceneByPath (string scenePath);

パラメーター

scenePath シーンのパス。プロジェクトフォルダーとの相対パスである必要があります。例: "Assets/MyScenes/MyScene.unity"

戻り値

Scene A reference to the Scene, if valid. If not, an invalid Scene is returned.

説明

Searches all Scenes loaded for a Scene that has the given asset path.