- Home /
how to make the button only clickable when clicked in it? (not when clicked on its children for example)
Hello,
i am facing a problem with buttons in the 4.6 ui.
when i click on a child of a button its get clicked, so how can i make the button only clickable when click in the button itself?
canvas group and disable block raycast works, but i dont want to use it for each child. is there any other solution?
Answer by IHackedDeath · Aug 31, 2015 at 02:07 PM
Hi Shnayzr,
I am assuming that they are right on top of eachother therefore I believe this is because the buttons are on the exact same plane and are at the same position when you click so it clicks both regardless of wether of not they are a child.
I am not sure why you would need a child of a button anyway as you could just make a new button or image or whatever is required.
If you would like to provide further information about the problem that you are currently facing then I am more then happy to give further assistance :)
I hope this helps.
Kind Regards,
IHackedDeath.
Your answer
Follow this Question
Related Questions
Button on Panel is not responding 1 Answer
RPG Maker style menu with UI buttons that are selected by controller 0 Answers
UI Button Event Trigger Update Selected not working 0 Answers
UI Button Set Image 1 Answer
UI Button ON/Off 3 Answers