Description

Attempting to set the Pressed Sound for Widget Style dynamically never actually sets the sound. When you click the button, you get no pressed sound. However, when setting the Pressed Sound through the Button's details panel, the sound plays without issue.

Found in 4.9.2 binary. Reproduced in 4.10 Preview 4 and Main CL 2752291.

Steps to Reproduce

1. Open the editor
2. Create a new Widget BP
3. Add a button
4. Get a reference to the button in the event graph of the Widget BP
5. Drag off of the Button, and add a get style node
6. Split the struct pin
7. Drag off of the button and add a set style node
8. Connect all of the pins except for the Widget Style Pressed Sound.
9. Split the Widget Style Pressed Sound pin
10. Promote to a variable, and set the default to a sound effect. Attached image of the blueprint setup for reference.
11. Add the widget to the viewport
12. Click on the button

Result: No sound plays when the button is clicked.

Expected: Sound would be set to the value of the Sound variable, and would play upon clicking the button.

Have Comments or More Details?

Head over to the existingAnswerHub thread and let us know what's up.

0
Login to Vote

Won't Fix
ComponentTools - UMG
Affects Versions4.9.24.104.11
CreatedNov 6, 2015
ResolvedDec 14, 2018
UpdatedFeb 17, 2020