I build the script and button like in lecture 38. No problem of switching from Start Scene to Core Scene.
After lecture 39 is done in Core Scene the highlight effect of the button dissapear and click on button doesn’t trigger the ClickEvent. Start the Core Scene first have the same problem. What mistake am I making? Unity-Version: 2019.3.6f1
components of button in the Core Scene:
herachie:
SceneLoader(Object):
SceneLoader(Script):
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneLoader : MonoBehaviour
{
public void LoadNextScene()
{
Debug.Log("CLICK");
int currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
Debug.Log("currentSceneIndex: " + currentSceneIndex);
SceneManager.LoadScene(currentSceneIndex + 1);
}
public void LoadStartScene()
{
SceneManager.LoadScene(0);
}
}
No “CLICK” in debug-console