Audio in UE5
One of the essential components of any game is sound. Sounds make your game more believable and immersive, which will provide a much better experience for your player. Video games usually have two types of sounds:
- 2D sounds
- 3D sounds
2D sounds don’t have any consideration for the listener’s distance and direction, while 3D sounds can be higher or lower in volume and pan to the right or left, depending on the player’s location. 2D sounds are usually used for music, while 3D sounds are usually used for sound effects. The main sound file types are .wav
and .mp3
.
Here are some of the assets and classes related to audio in UE5:
Sound Base
: Represents an asset that contains audio. This class is mainly used in C++ and Blueprint to reference an audio file that can be played.Sound Wave
: Represents an audio file that has been imported into UE5. It inherits fromSound Base
.Sound Cue
: An audio asset that can contain logic...