# How to add background music

To make the music or sound heard throughout the game, you could use the interface layer, as this would allow us to permanently listen to the audio throughout the project, without the need to repeat it in each scene. Conversely, if you only want it to play in one scene, you just have to drag the audio into it.

### Music configuration

For the music you can configure:

* If you want the music to start playing as soon as the palyer enters the game or the scene the music is on.
* If you want the music to be in a loop.
* If you want the player to see the controls of the music player.
* Volume.

Only in **one scene**:

<figure><img src="/files/p1D2F2I6EvVMR1msdwYD" alt=""><figcaption></figcaption></figure>

In **all the scenes**:

<figure><img src="/files/AJ9zUOVmt2Okxc9oZ7T8" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://academy.theufolab.com/tips-and-advanced-features/how-to-add-background-music.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
