Unity: Switch between scenes

Introduction

Prerequisites

Steps

Select “Rename” to change the scene name
Click Reload
Add a UI button into the scene
The original camera area is at the lower-left corner (the tiny little rectangle)
Finally aligned with the Camera area
Looks basic now
Something like this
The default template for a Unity C# script
using UnityEngine.SceneManagement;
public void ClickStart() {
SceneManager.LoadScene("GameScene");
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class TitleSceneController : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{

}
// Update is called once per frame
void Update()
{

}
public void ClickStart()
{
SceneManager.LoadScene("GameScene");
}

}
Select the Main Camera as the object, then select ClickStart()
You can see all 2 scenes have been added to the Build Settings dialog

Completed Project

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store