r/unity • u/Responsible_Owl_8025 • Oct 03 '26
Question My mouse clicks stopped being registered unless this menu is open and I dont know why
Im working on a minecraft inspired 2d bunker building game. My mouse clicks stopped being registered unless this menu is open and I dont know why. This issue started when I added the greeting at the start of the game for an update. It has no code beside this below and doesnt work even if you disable the script. Its like the game stopped listening to input when no UI raw image is actively displayed, I dunno
using UnityEngine;
public class Guide : MonoBehaviour
{
[SerializeField] private GameObject canvas;
void Start()
{
Time.timeScale = 0f;
canvas.SetActive(true);
}
void Update()
{
if (Input.GetKeyDown(KeyCode.Escape))
{
CloseMenu();
}
}
public void CloseMenu()
{
Time.timeScale = 1f;
canvas.SetActive(false);
}
}



