Load the scene this object is referencing by calling SceneManager.LoadScene.

This function is designed for you to be able to call it from Unity Events in the inspector, like the On Click call from UI Buttons. You can also call it from code.

Declaration

public void LoadScene();

public void LoadScene(LoadSceneMode mode );

Parameters

mode Allows you to specify whether or not to load the Scene additively. If not provided is LoadSceneMode.Single by default.

using UnityEngine;
using UnityEngine.SceneManagement;

public class LoadSceneOnStart : MonoBehaviour
{
		public SceneReference targetScene;

		void Start()
		{
				targetScene.**LoadScene**();
		}
}