Sounds Prefabs
Sounds
This array contains audio tracks associated with the effect. You can enable several audio tracks at once.
Audio
A simple background audio track that loops by default.
Usage
"sounds": [
{
"audio": {
"filename": "sound.ogg",
"start": 0,
"end": 10,
"loop": true,
"volume": 0.7
}
// ...
}
// ...
]
| Parameter | Description | Optional | Default Value |
|---|---|---|---|
| Path to an audio track. The supported formats are | + | + |
| Playback start position in seconds. |
| |
| Playback end position in seconds. When omitted, playback continues to the end of the track. |
| |
| Loops the audio track. |
| |
| Audio-track volume in the range |
|
note
To use the audio prefab on the web, you must call player.setVolume(1); in your code.