Progress Report
What You've learned
- Playing a sound reacting to an action by the user
- Loading audio assets of the
AudioSource
asset type - And playing them by spawning the
AudioPlayer
component - Controlling playback settings with the
PlaybackSettings
component
- Loading audio assets of the
- How events work
- With
App::add_event
to register an event - Then
EventWriter
to send events - And
EventReader
to iterate on them
- With
- Playing a background music
Going Further
This workshop uses wav files as they are easier to generate from tools. In a released game, I would recommend another format, mostly ogg, as it has better compression.