UMG button to set static mesh location

I want to be able to set the location of a static mesh when I press a UMG button from a menu. The menu is on a blue print for a picture frame if that matters

When you select the button, in the details panel on the bottom right if you scroll down you see some events with a green button each and a plus sign on it.
Choose the OnClicked-Event (click the green button). Now you have an event on your graph which triggers when you click that button.
Now you can set the location wherever you want. I suppose you have an actor that is mostly a static mesh. Use Set Actor Location.

Oh that simple? I’m used to c++ haha. I’ll give it a try thanks

How would I link the static mesh though? How would I create an AActor* to set which mesh I want to move? I tried setting that all up and created an actor variable and selected the object I wanted to move but it did not work.

You can show your setup

Okay I realised the mesh that I selected wasn’t the right one and the actually mesh I tried to select when creating an actor reference doesn’t show up, I’m trying to create the actor reference inside the UMG graph I’m not sure if that’s the problem, how can I selected a mesh inside of the UMG graph?

It depends. You can use a Line Trace then get the Resulting Actor and try to cast to the type of Actor you want (Character, StaticMeshActor, custom class, etc.) and then access its StaticMeshComponent