What's the best way to play a sound effect for a gui node?

It looks like there’s nothing about sound in the gui section of the API docs or manual.

If I want to play a sound when a gui button is pressed, is there any way to do this from the gui_script, or do I have to pass a message to a collection?

1 Like

You must send a message to the script of a game object with a sound component. You’ll probably want a single sound manager object that handles volume levels based on groups, and gating.

5 Likes