> For the complete documentation index, see [llms.txt](https://sonity.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sonity.gitbook.io/docs/soundpicker.md).

# SoundPicker

SoundPicker is an easy way to modify SoundEvents in your own scripts

<div align="left"><img src="https://content.gitbook.com/content/ECYQ2OSoWTLdq4EUgnCW/blobs/fD7VH0WUJYyOedhN7P3C/image8.png" alt="" width="563"></div>

[SoundPicker](/docs/soundpicker.md) is a serializable class for easily selecting multiple [SoundEvents](/docs/soundevent.md) and [modifiers](/docs/modifiers.md).\
Add a serialized or public [SoundPicker](/docs/soundpicker.md) to a C# script and edit it in the inspector.\
The [SoundPicker](/docs/soundpicker.md) is not nestable in an array or custom class because it is built upon CustomPropertyDrawer.\
This is because custom serializable classes do not support inheritance and polymorphism for serialization.\
[SoundPickers](/docs/soundpicker.md) are multi-object editable.

<div align="left"><img src="https://content.gitbook.com/content/ECYQ2OSoWTLdq4EUgnCW/blobs/Mh8WO6YbJv42LKRKZfM9/image89.gif" alt="" width="563"></div>

**SoundEvent**\
The [SoundEvent](/docs/soundevent.md) to play.

**Modifiers**\
[Modifiers](/docs/modifiers.md) are used to control how [SoundEvents](/docs/soundevent.md) are played (e.g. volume, polyphony, fade in length etc).\
See [modifiers](/docs/modifiers.md) for more info.

Example code:

```csharp
using UnityEngine;
using Sonity;

public class ExampleSoundPicker : MonoBehaviour {

    public SoundPicker soundPicker;

    void Start() {
        // Plays the SoundPicker at the position of the transform
        soundPicker.Play(transform);
    }
}
```
