How to link my scenes inside of Unity?

I am new here. I have set up a multilevel game. I’ve exported all my scenes, but idk how to link those scenes together. Please help @Ready

3 Likes

Welcome to the our Forum @ProfuseComet986! :video_game: :wink: Hi, how exactly do you want to connect them? If you want to run each of the scenes separately, you will need to write a script from the menu and bind all the scenes to the buttons in the menu. In fact, you need to have some simple skills with Unity editor, maybe in the future we will do a lesson on this topic, at the moment it may look something like this:

Create a script:

using UnityEngine.SceneManagement;

public class MainMenu: MonoBehaviour {

public void SceneFunc () {SceneManager.LoadScene (SceneManager.GetActiveScene (). buildIndex + 1); }

}

Create a UI button and bind a script to it. Add the function created in the script:

0n3nj

I think, the best option is to go to the Unity forum and find a ready-made solution there or are already many ready-made solutions on the Internet and you can choose any of them for your task.

3 Likes