Version: 2021.3
언어: 한국어
public static SceneManagement.Scene GetSceneByPath (string scenePath);

파라미터

scenePath Path of the Scene. Should be relative to the project folder. Like: "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.