Answer the question
In order to leave comments, you need to log in
Why doesn't the transition to another scene work?
Good day to all who read. The league of inepts is crying out for help
Cannot make the transition on the button to another scene. I don't understand where is the error
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class NewG : MonoBehaviour
{
public void NewGame()
{
SceneManager.LoadScene("S1");
}
}
The script was attached to the button
Answer the question
In order to leave comments, you need to log in
Did you put the specified scene in Scenes in Biuld?
For starters, I would like to read the error log !!!
1) Attach your scene in the game's build options;
2) I recommend loading levels asynchronously. Learn Coroutine in Unity.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question