기술 자료

Unity Engine

Unity Engine

GetSceneByPath(string)

Searches all Scenes loaded for a Scene that has the given asset path.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public static Scene GetSceneByPath(string scenePath)

Parameters

scenePath

Path of the Scene. Should be relative to the project folder. Like: "Assets/MyScenes/MyScene.unity".

Returns

Type

Description

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