Okay so I have this unity project which consists of an Add Card button. With that button I can add more cards (the cards that are spawning are buttons) to the canvas. Now I want to make it so that each time you click on a card, each of them has a separate modal window that shows content about the card. Now I managed to make the modal window work for the first card that's already spawned but I have no idea how I can make it so that other cards that I spawn using the Add Card button also have their own modal window.
If someone could help me out I would appreciate it greatly.
Thanks