How can i send events from widget to level blueprint

Hey, I’m new to Unreal Engine, but this is how I understood it works:

  1. Create an UMG blueprint for your widget, I called mine UMG_SliderBlueprint
  2. Drop a slider on it, in the Designer view, I renamed it to MySlider
  3. Switch to the Graph (blueprint) view
  4. Create a new Event Dispatcher, I called mine MySliderChanged
  5. Select your Event Dispatcher and add a Float input in the Details tab, I called mine Value (how original!)
  6. Now add Call MySliderChanged and hook it up

  1. Compile the blueprint and after that open the level blueprint
  2. Create the widget and add it to the viewport as usual.
  3. Next add the My Slider Changed binding and event (you get them both if you choose Assign)
  4. Hook up the blueprint, and e.g. display the slider value every time it is updated

I assume you already set the input mode, and show the mouse cursor, so you can actually change the slider. This should be a fully working example of what I understood you need. As said, I am new to Unreal Engine, so if there is a better way I would love to hear about it.

2 Likes