Hello, i have 2D mobile game where plates(instantiated prefab) are spawned on touch and it works fine, but the problem is when i click on pause button, the plate will spawn behind that button (see image below).I was trying to make a collider, which will detect the plate tag and destroy it, but it does not detect them…
Thanks is advance for help

It’s probably because you’re checking mouse buttons or touch directly, whereas the button can only block EventSystem stuff.
What I usually do for pause is when I am paused I disregard ALL touch input. I also usually ONLY set the Time.timeScale to zero when paused, no other variables.
Then every function that has touch just starts with:
if (Time.timeScale == 0) return;
well, but i need timeScale set to value 1