UNITY TUTORIAL - AudioSource in Update: play sounds without overlaps tutorial

$0+
0 ratings

Videotutorial and its text version, published on my Youtube channel.

Subscribe to my channel & turn on notifications to get updates on new videos!

The PDF is free; feel free to share it!


In this tutorial, I will show you how to play an audio file in Unity and, more importantly, how I resolved an issue related to overlapping audio playback from an Audio Source. Before we proceed, please note that the solution presented in the video is the one I personally adopted for this problem, but there are likely other (and potentially better) solutions out there; so, do not regard the information provided here as the definitive approach!

The tutorial was created using the 2022 version of Unity.

Specifically, I want to play a footsteps audio file (sourced from the first Prince of Persia game by Jordan Mechner, which was my initial PC gaming experience) when the character moves within the scene. This may seem like a straightforward task, but as we will discover, it conceals a minor challenge...

$
I want this!

Videotutorial + PDF version. The product is free, so any payments made by those who want to download it will be considered as donations, which do not entitle the user to support, advice, or other content.

Size
92 MB
Copy product URL
$0+

UNITY TUTORIAL - AudioSource in Update: play sounds without overlaps tutorial

0 ratings
I want this!