Question by
nikolapestanac · Sep 13, 2016 at 05:58 PM ·
c#buttonclicking
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#.
Comment
Best Answer
Answer by nikolapestanac · Sep 20, 2016 at 06:13 PM
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.