UI Buttons without blocking raycast
Hi community,
.
To describe it shortly, I want to have two buttons one over the other (overlaying) and by clicking one I want to trigger both button's OnClick event.
I don't want to run a script from the top button and find the under button (maybe by name) and trigger it manually if there is any other and simpler way.
.
Actually, I'm writing an interactive tutorial that says the user to click on one button so that something gonna happens.
I want both the real button and the fully transparent button of the tutorial to get triggered so not only the proper thing gonna happen in the game but the tutorial will understand that the button is clicked hence it gonna hide or go to next step.
I know I can use events in buttons and then look for them in the tutorial script to check if they got clicked but it just gonna mess with my scripts and make them unwantedly crowded.
.
thank you all.
I have the exact same scenario in my game. Would love to know if you have found a solution
I have the exact same scenario in my game. Would love to know if you have found a solution
Your answer
Follow this Question
Related Questions
Trying to increment a variable in a Coroutine on pressing a UI button 0 Answers
Add listenner to button in loop error 0 Answers
Detecting a button click 1 Answer
How can I generate and setup buttons via code 1 Answer
Get value in button OnClick() 1 Answer