R
R
Roman Tuzov2019-12-02 20:03:01
Game development
Roman Tuzov, 2019-12-02 20:03:01

Why is the unity3d scene not loading?

s7Z1Q.png9g2nw.png

using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.SceneManagement;

    public class Menu : MonoBehaviour
    {
        
    		public void OnClickStart() {
    			SceneManager.LoadScene(1);
    		}

    }

I supplement the question: You can not look at the error in the console. The script is exactly the same as I posted it on the site. An error from the tests remained in the console, now I have the code as I wrote. The console does not give any errors when you click on the button and when you start the game

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Tuzov, 2019-12-02
@Hutson

Problem solved, code is working. The error was in the file where the script led. The file somehow got lost and everything that I did in it was not saved.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question