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 13,250 views for Roblox across 4 videos. His channel published less than an hour of Roblox content, making up less than 0.19% of the total overall content on Omogonix's YouTube channel.