Play Spatial Audio
Play a spatial audio when a button is clicked.
Introduction
Play Spatial Audio plays a spatial audio in the world. It runs Environment.Play Spatial Audio, so the sound comes from a position and fades as the player walks away. This is how a button plays a spatial audio. caption Play a spatial audio when a button is clicked: When button is clicked by Player -> Execute (System, Environment.Play Spatial Audio)
Steps
Add the event When button is clicked by Player. Add an Execute command under it. Set the target to System. Pick Environment, then Play Spatial Audio.
When to use it
A button that plays a spatial audio. Sounds that come from a place, for example a waterfall or a radio. Ambient sounds in a world.
Notes
The screenshot shows only the property path, the audio and its settings are set in the script and are not shown here. A spatial audio comes from a position, so it is louder near it and quieter far away.