Skip to reading
3D Models & Video in GUIs

17. Set the audio deliberately

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Muted and Volume (dB) belong to this Video element. They do not automatically pause scene music, stop other sounds or change the whole game’s audio preference.

Source table from 17. Set the audio deliberately, page 25
Volume settingPractical use
0 dBNo attenuation at this player’s volume control.
A negative value, such as -6 or -12Reduce this clip’s level. Judge the result with an audible clip.
Muted onSilence this player even if its saved Volume field is higher.
A positive valueRaises the level. Check the resulting sound rather than assuming louder is better.

The test-pattern clip shown in this guide is silent. Use a clip with speech or a clear sound to check audio. If music covers a spoken briefing, coordinate the music through its own actions or settings.

For a live player-level adjustment from a script, obtain the VideoStreamPlayer as shown in the playback chapters, then change its volume_db. This changes that player directly without reloading the element definition.

Code example
player.volume_db = -12.0

The line above assumes player is a valid VideoStreamPlayer already obtained by your script. It is a decibel value, not a 0-to-100 percentage.

If you change the authored muted property through Change GUI Element Property, expect a stream reload. A paused clip or one with Autoplay off may need an explicit playback command afterward.

Page 25 of 45Permalink
Go to page