How to set a specific area for a click?

I got and idea to make a tcg game and a thing that is stopping my progress is my inability to set an area to be clcikable while wherever else you click your click does something else.
So,I made a button which when clicked would place a card in your hand,the problem is that happens everywhere else as well.
This however does not stop other things from working such as letting me drag cards and so forth.
I work in C#.

For some strange Reason it seems to fix this all i had to do was
set the button to activate by
eventData.button == PointerEventData.InputButton.Left
instead of input.Mouseclick.