# Sound Source

<figure><img src="https://886210201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfI79StJ3o7OKZxf9vHhb%2Fuploads%2FetbLnNfS8o52keSQggeb%2FUnity_G7QHvYRN1u.png?alt=media&#x26;token=3bc07947-f890-4555-ba72-254cb0c9905a" alt=""><figcaption></figcaption></figure>

## Play On Enable

Check this box to automatically play the sound whenever the GameObject is enabled.

**Only Play Once:** Plays the sound only the first time the GameObject is enabled.

## Stop On Disable

Check this box to automatically stop the sound whenever the GameObject is disabled.

**Override Fade Out:** Check this box to override the fade-out time setting when stopping the sound on disable.

## Sound

The sound to play. You can select the required sound via the dropdown menu.

## Position Mode

Determines the sound's location when triggered.

* **Global**: Plays globally (2D), meaning the sound can be heard everywhere.
* **Stay Here:** Plays as a 3D sound and stays where the GameObject is located.
* **Follow Target:** Plays as a 3D sound and follows the GameObject as it moves.


---

# 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://man572142s-organization.gitbook.io/broaudio/core-features/no-code-components/sound-source.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.
