My scene is loading.
My scene is in the build index. Yet I'm getting this error:
Cannot load scene: Invalid scene name (empty string) and invalid build index -1
UnityEngine.SceneManagement.SceneManager:LoadScene(String)
I was told that I can't just ignore it, even though everything is working fine. I'm supposed to track down the error, but nothing I've tried has worked. Can someone tell me how to fix it? Below is my code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using System;
using UnityEngine.EventSystems;
public class UnlockChapters : MonoBehaviour
{
public string nextChapter;
public Button unlockChaptersButton;
void Start ()
{
Button btn = unlockChaptersButton.GetComponent
↧