CRI ADX(Unreal Engine) v1
Beginner's Lesson 06: Play a sound when the player presses a button

Before starting

To avoid any confusion, first remove the sounds you placed in the level in the previous tutorial, "Getting Started.05 Streaming Playback."

Placing Sounds in a Level

Drop the “SimpleMusic_simple_bgm_Cue” asset on the level.


Uncheck “Auto Activate” in the details panel of SimpleMusic_simple_bgm_Cue
to avoid automatically playing the sound when you start the game.

Writing the Level Blueprint

Open the level's Blueprint.
Add the "Play" node from the "Atom Sound" category.
*If you uncheck "Display according to context", it will be displayed as a candidate.


Drag and drop the SimpleMusic_simple_bgm_Cue from the Outliner onto the level's Blueprint.


Connect SimpleMusic_simple_bgm_Cue to the Target input of the Play node.


A node called "Target Atom Component" will then be automatically generated, as shown below.


We want the Play node to execute when "1" is pressed on the keyboard.


Compile the level's Blueprint.

Press the button to play the  sound

Run the game: there should be no sound.
Press "1" on your keyboard to start playing the background music.