I am trying to make the enemy in my game when they die to drop coins that when the player collides with them to immediately add to the currency. I actually made almost everything (picks up upon collision, add to the GameMode, and also saving it). I want a popup message to appear that it will tell you how many coins you picked up. I made it so an animated text to appear by setting the opacity from 0 to 1 and after a while back to 0.
But I am having a problem with the text. You see, the coin actor will generate a random number from 1 to 10. I want that number to transfer to my widget so I can print it but can’t make the cast to the actor to work. I don’t know what to put in my object wildcard to reference the correct coins actor because there can be 10 different actors with different random numbers in them.