Playing Audio Clips through your Code in Unity

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
here's how to play sound effects through your code in your unity game first add an audio source to your game object then open up the script from which you want to call it the audio file create the audio source variable and the audio clip variable to play the clip from the source use the play one-shot function from the audio source class object with the clip as a parameter then listen to your audio in the game you Kolesnikova
Info
Channel: Nathan Jenkins
Views: 77,691
Rating: undefined out of 5
Keywords: unity, tutorial, audio, code, c#, play audio, audio clip, developer, indie
Id: ln4ilSVR1Ug
Channel Id: undefined
Length: 1min 19sec (79 seconds)
Published: Tue Jun 16 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.