The Play Audio File behavior plays an audio clip loaded from the Resources folder in your project’s asset folder. VR Builder supports all audio file formats supported by Unity, which are:
Insert the relative file path from the Resources folder. Please note that you have to omit the file extension, as shown in the example. You can find more information about this on https://docs.unity3d.com/ScriptReference/Resources.Load.html.
File to be played: Assets/.../Resources/Sounds/click-sound.ogg
Default resource path: Sounds/click-sound
By default, steps execute behaviors in the beginning, in their activation stage. This can be changed with the Execution stages dropdown menu:
By default, the step waits for the audio file to finish. If you want the step to interrupt the audio in case the step is completed, uncheck this option.
Note: this might lead to an audio file not even being started.
We strive to create the best product for our users and rely on constant feedback to do so. Please share your ideas and suggestions with us in the VR Builder Community on Discord!Write us on discord