I’m making a TCG and I want a menu to appear above the card when a player clicks (taps) on the card. Sort of like a drop down menu (which I have watched tutorials of but they’re using buttons and I’m new to Unity so I don’t know how to make it use the card instead) but going up instead of down. The menu would have options for what the player can do with the card (“Play”, “Discard”, etc.). The card consists of a Canvas and a Panel and an Image. It is 187x261. Any help would be greatly appreciated. Thank you.
There are, of course, a couple of ways to go about doing this. Perhaps the easiest is to just turn the card into a button? Instead of Canvas → Panel → Image, do Canvas → Panel → Button → Image. Then on the Button itself you can add an OnClick event to spawn the UI that you want. Do not add any animations to the Button, so it behaves just like the normal Image.