- Home /
UI Buttons are not pressing. ,I have a UI button, but for some reason it won't press.
(NOTE: I may have already asked a similar question, I just don't know if the other one posted so I am asking it again just to be sure) I am trying to make a game that utilizes buttons to respawn the character, but for some reason, the buttons are not registering the press. I have looked at other peoples questions, who had problems similar to mine, but none of the answers worked for me. I have everything that they say I need: Graphical Raycaster, Event system, etc. Does anyone know what may be causing this problem?,I've looked at other questions asked by people who have the same problem as me, but none of the answers seem to work. I have an event system, the button is intractable, I only have one canvas, etc. I have no idea what is going on. And it's not that the code that I want isn't getting sent through: it's simply not registering that I clicked the button. Does anyone have an idea what may be causing this problem?
Answer by Ev145 · Dec 24, 2020 at 05:52 AM
Did you tell Unity what function to trigger on press?
Yes, I did. I figured out what was the problem; I had another panel, since I used panels for my UI, that was in front of it that had buttons in the same position. Said buttons where blocking the ones I needed. I fixed it for the time being by putting everything inside of one panel, but I don't know how to properly fix it, as now I am at a stage where I need multiple different panels. Do you have any idea at how I could fix this completely? Is there a function I can call that allows me to disable a panel until I re-enable it?
Your answer