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

INTERNAL_CALL_GetSceneByName() private method

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

Usage Example

        /// <summary>
        ///   <para>Searches through the scenes added to the SceneManager for a scene with the given name.</para>
        /// </summary>
        /// <param name="name">Name of scene to find.</param>
        /// <returns>
        ///   <para>The scene if found or an invalid scene if not.</para>
        /// </returns>
        public static Scene GetSceneByName(string name)
        {
            Scene scene;

            SceneManager.INTERNAL_CALL_GetSceneByName(name, out scene);
            return(scene);
        }
All Usage Examples Of UnityEngine.SceneManagement.SceneManager::INTERNAL_CALL_GetSceneByName