- Home /
UI button sometimes not clicking
Hey there. I have a UI button in 3D space. If I were to click it 10 times, it would probably only actually activate the DoClick function 3-4 of those times. The weirdest part is that it sends the click signal to the EventSystem, and even has a slight color change for a split second. Just that the function doesn't call.
(These gifs are not synchronised)
Answer by Llama_w_2Ls · Oct 08, 2021 at 04:25 PM
It may be possible that some sprite or other UI element on the same sorting layer is blocking the button. On your UI elements, anything you don't need to click on, set raycast target to false. This could be the case.
Your answer
Follow this Question
Related Questions
Making Selectable UI Grid objects 0 Answers
Canvas-prefab elements are not interactable 2 Answers
Set GameObject for OnClick.AddListener Lambda 0 Answers
UI canvas appearing smaller on build. 0 Answers