Sounds Prefabs
Sounds
This array contains audio effects bound to the effect. You can enable several audio tracks at once.
Audio
Simple audio effect on background, looped by default.
Usage
"sounds": [
{
"audio": {
"filename": "sound.ogg",
"loop": true,
"volume": 0.7
}
// ...
}
// ...
]
Parameter | Description | Optional | Default Value |
---|---|---|---|
| Path to audio track. Tracks in | + | + |
| Loop the audio track. |
| |
| This audio track volume. Value from |
|
note
To use prefab with sound effect on Web it's mandatory to set player.setVolume(1);
in the code.