Question by
ImmenseMudkipz · Aug 03, 2017 at 08:47 PM ·
c#buttoncanvasboxcollider2d
UI button that displays on top of a clickable 2D Box Collider in the scene won't work
I have a UI button that appears on the screen over a GameObject with a 2D Box Collider. They both have functions called whenever you click on them, but the script attached to the GameObject with the Box Collider 2D is always called first. How can I make it so that either the function on the GameObject with the Box Collider 2D isn't called, or just make it so that the button's function is called before it?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612131849im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
entire project lost touch input 0 Answers
Making button start external .exe file HELP!!!! 1 Answer
CrossPlatformInput Detect Multiple Input Headache 1 Answer
Multiple mobile devices 0 Answers
Player Can't Interact With UI 3 Answers