hi I’ve got a problem I have 2 scenes in my game a TtitleScreen and Level1
in TitleScreen theres a Start Button that loads this script attached to a UIManager gameobject.
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class UIManager : MonoBehaviour {
public void SinglePlayerStart()
{
SceneManager.LoadScene("Level1");
}
public void TitleScreenStart()
{
SceneManager.LoadScene("Title_Screen");
}
}
and when I click the Start Game Button the game loads Level1
but when I try to go the other way around and create a button in Level1 to take me back to the TitleScreen the button wont push down at all it appears locked up and when I assign the onClick functions nothing happens as the button doesn’t even seem to register at all.
I have tried moving the button in front of the canvas or in the back of it but nothing seems to make the button activate whats causing this?
thanks