Hey! If you are coding and dont know what "Void Start" or "Void Update" means, I will teach you Void start is at game startup, so at game startup if you want to play a sound, keep void start and put the code from this video between the brackets below void start Void Update is every frame, so for example, If I wanted my game to check every frame for jumping to play sfx, I would use void update. Hope this helped!
Thanks yeah I’m looking for how to apply sound effects to specific things in my game, not button presses like this video. How can I apply these examples to things like shooting a projectile or when an animation plays?
@SeanWonder maybe adding the script (in the inspector) to the animation/whatever. You can do this by scrolling all the way down inside the inspector while have your animation/whatever selected, then drag the script into the inspector
Thank you so much for the great tutorial! There are so many other's out there that are too complicated or have a lack of information but yours's is just right!
Thank you so much this just added the best touch to my game and this is the first really good tutorial on making sound effects I have ever found so really thank you so much.
Hii it says in my console that "The type or namespace name 'AddSource' could not be found(are you missing a using directive or an assembly reference?" I'm just starting to learn how to develop a game, can u help me with this? Thank uuu in advance
Helped me a lot on this. Btw I used a Global (singleton) Audio Player for my project as it is a 2d arcade shooter and my objects are Destroyed all the time.
Hey! If you are coding and dont know what "Void Start" or "Void Update" means, I will teach you
Void start is at game startup, so at game startup if you want to play a sound, keep void start and put the code from this video between the brackets below void start
Void Update is every frame, so for example, If I wanted my game to check every frame for jumping to play sfx, I would use void update.
Hope this helped!
Thanks yeah I’m looking for how to apply sound effects to specific things in my game, not button presses like this video. How can I apply these examples to things like shooting a projectile or when an animation plays?
@SeanWonder maybe adding the script (in the inspector) to the animation/whatever. You can do this by scrolling all the way down inside the inspector while have your animation/whatever selected, then drag the script into the inspector
@@SeanWonderjust add an audio source to the “gun”, call public audiosource src;
When Shoot(), run src.Play(); easy as that
Nicely DONE! THANK YOU MAAAAN!
THANK YOU I WATCHED A DOZEN VIDEOS NONE WORKED YOU ARE A LEGEND!!!
Thank you so much for the great tutorial! There are so many other's out there that are too complicated or have a lack of information but yours's is just right!
Man, really appreciate your video. You saved my life! 🙏🙏🙏
Thank you so much this just added the best touch to my game and this is the first really good tutorial on making sound effects I have ever found so really thank you so much.
Instantly subscribed. I am a beginner at Unity and this tutorial had exactly what I needed.
This Helped Me A lot Thanks!
im your 1000th subscriber
i was your 1000th subscriber
great vid, gets to the point fast
Thanks for the tutorial bro,it was awesome.
Your awesome!
Thanks for your help, I watched a few videos from people showing how to only play one sfx.
this is cool; but it doesn't look very scalable, you have a more robust solution?
Hii it says in my console that "The type or namespace name 'AddSource' could not be found(are you missing a using directive or an assembly reference?"
I'm just starting to learn how to develop a game, can u help me with this? Thank uuu in advance
Thanks!
but where can i find these sound effects I have been looking for theme and I didn't find any=[
On the sound effects player script the sfx 1 2 and 3 audio clips didnt come up for me so i couldnt put it in, do you know how to fix that please?
Check if you set the audio clips as public in the script
@@thedevelopershow06 Thanks
WOW!
Very useful. Thanks for this tip.
The second Ori also is missing it's music not just sound efx xD
After I built the game the sound wouldn't play, Do you know why? Great tutorial by the way!
Helped me a lot on this. Btw I used a Global (singleton) Audio Player for my project as it is a 2d arcade shooter and my objects are Destroyed all the time.
Great
0:20 You removed the music, too..?
a psycopath will use light mode in unity, nice tutorial
great vide but its 4 minutes instead of 3 :(((((
choon!!!!
How to add alan voice and unity lip sync
Wtf does all that code mean ? I’m not learning anything.
"all that code" and it's 30 lines at most...
very unclear
Broke my program worst tutorial ever