I have a main menu scene and the game scene. For my main menu scene I created a fade out whenever the scene plays. In the game scene I created a pause menu where you have the choice to go back to the Main Menu. When I clicked to go back to the Main Menu, the scene does not load in game view but it loads in scene view.
Is there anything I am doing wrong?
Scene Change Script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class PauseChange : MonoBehaviour {
// Use this for initialization
void Start () {
}
public void ChangeScene(string name)
{
SceneManager.LoadScene("MainMenu");
Debug.Log("Scene Loaded");
}
}