How to use Widget interaction in top down templete

I don’t quite understand what you intend to do by attaching it to the CursorToWorld. Could you be more specific?

I am going with the assumption you are using the widget in a HUD, correct? If you want to use widgets, try something like this:

  1. Create a canvas widget, in your [Content Browser]
  2. Add a button to the widget
  3. Click on the panel’s graph and add an OnClick event to your button (Hint: “details” panel for the button)
  4. Open your HUD blueprint
  5. At the BeginPlay node of your HUD, add these nodes:
  6. [Create Widget] (Set the class to the canvas panel you had just created)
  7. [Add to Viewport] (Connect the pins from the [Create Widget] node to this node)
  8. Add something to the buttom’s OnClicked event
  9. Run the game to see if it was all done correctly.

Does that help?