INTERNAL_CALL_GetSceneByPath() private method

private INTERNAL_CALL_GetSceneByPath ( string scenePath, Scene &value ) : void
scenePath string
value Scene
return void
        /// <summary>
        ///   <para>Searches all scenes added to the SceneManager for a scene that has the given asset path.</para>
        /// </summary>
        /// <param name="scenePath">Path of the scene. Should be relative to the project folder. Like: "AssetsMyScenesMyScene.unity".</param>
        public static Scene GetSceneByPath(string scenePath)
        {
            Scene scene;

            SceneManager.INTERNAL_CALL_GetSceneByPath(scenePath, out scene);
            return(scene);
        }
Beispiel #2
0
        public static Scene GetSceneByPath(string scenePath)
        {
            Scene result;

            SceneManager.INTERNAL_CALL_GetSceneByPath(scenePath, out result);
            return(result);
        }