How to Change Scenes in Unity Using C# (Unity Tutorial 2021)
In this Unity tutorial, I show you all how to change scenes in Unity using C#.
Script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class nextscene : MonoBehaviour
{
public string scenename;
void OnTriggerEnter(Collider other){
if(other.CompareTag("Player")){
SceneManager.LoadScene(scenename);
}
}
}
Follow me on Twitter:
https://twitter.com/omogonix
Forgehub:
https://www.forgehub.com/members/omogonix.87700/
Subscribe to my Second Channel:
https://www.youtube.com/channel/UCkylkvUtpvbHfafGfIdMLBQ/featured
Join my Discord:
https://discord.gg/a88vmGD
Facebook Page:
https://www.facebook.com/Omogonix/
Follow me on Instagram:
https://www.instagram.com/uwugonixhalo/
Itch.io:
https://omogonixlachlan.itch.io
Music Used:
-Ship Wrek & Zookeepers - Ark (NCS Release):
https://www.youtube.com/watch?v=8xlDwukxjnA
Other Videos By Omogonix
Other Statistics
Roblox Statistics For Omogonix
Currently, Omogonix has 14,599 views for Roblox across 7 videos. Less than an hour worth of Roblox videos were uploaded to his channel, less than 0.44% of the total video content that Omogonix has uploaded to YouTube.