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?

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 :slight_smile:

I hope this helps.

Kind Regards,

IHackedDeath.