UnityEngine.SceneManagement.SceneManager.INTERNAL_CALL_GetSceneByPath C# (CSharp) Method

INTERNAL_CALL_GetSceneByPath() private method

private INTERNAL_CALL_GetSceneByPath ( string scenePath, Scene &value ) : void
scenePath string
value Scene
return void
        private static extern void INTERNAL_CALL_GetSceneByPath(string scenePath, out Scene value);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

        /// <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);
        }
All Usage Examples Of UnityEngine.SceneManagement.SceneManager::INTERNAL_CALL_GetSceneByPath