How do i get a widget component location and set it

i want to have a button that move depens on where i click so how do i get a widget component (like a button) location and set it ?

I haven’t done anything like that before, but I guess this would be the start:
You make a widget, that has a border in it, and put the button (or whatever) in that border.
Then you click on the Border, and at the top of the Details panel, there is an “Is Variable” box, and check that in.
Now you can reach the Border, when you switch to Graph mode. There you can use these nodes:
Get Border - Set Render Transform. This way you can move around your Border, and everything else in it too.

thank you

it dosent work there is no node like this

Hello 678GUY,

As a suggestion to get you pointed in the correct direction. You could use slot as canvas panel slot (as long as the widget is a child of the canvas panel). From there you can set the position of the widget. I have provided an example below. I hope that this information helps.

Example:

56079-setpositionhelp.png

After this you could combine this with the get mouse position scaled by DPI

Make it a great day

thank you