Skip to content

Play Sound Effect ​

Overview ​

Used to play a specified sound effect file in a particular scene or interaction node, enhancing scene atmosphere and interaction feedback. Playing a sound effect is executed immediately and does not block subsequent script execution.

Syntax ​

play sfx <sound effect name>

Parameters ​

ParameterRequiredExampleDescription
Sound effect nameYesdoor_openIdentifier of the sound effect file to play

Code Examples ​

play sfx door_open
play sfx button_click
play sfx notification

Released under BSD3-Clause License.