UMG - spawning button at random coordinates

Hi there,

I’ve only been working with the Unreal Engine for two weeks now and have decided to prototype a clicker game. A lot of things already work via blueprint. Now, however, I have come across a problem.


I want to spawn a button with random coordinates in my Main Widget. For this I only want to use blueprints. The “Bonus” button should be randomly spawned (similar to golden cookies in cookie clicker).


I searched a lot and couldn’t find a tutorial on how to do it. I can’t use “Targets” or “Get All Actors of Class” because my entire game is based on widgets.

Is such a thing possible?

Thank you for your help!

Why spawn the button, when you can just toggle visibility?