How to add multiple sound effects in Unity (3 MINUTES) - Unity 2022 Tutorial

Поделиться
HTML-код
  • Опубликовано: 23 дек 2024

Комментарии • 39

  • @M0ns3tr_Energy_drink
    @M0ns3tr_Energy_drink 9 месяцев назад +13

    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!

    • @SeanWonder
      @SeanWonder 9 месяцев назад

      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?

    • @M0ns3tr_Energy_drink
      @M0ns3tr_Energy_drink 9 месяцев назад

      @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

    • @Clik_Mazer
      @Clik_Mazer 4 месяца назад

      @@SeanWonderjust add an audio source to the “gun”, call public audiosource src;
      When Shoot(), run src.Play(); easy as that

  • @alexplaytop
    @alexplaytop 9 месяцев назад +5

    Nicely DONE! THANK YOU MAAAAN!

  • @NPC-to7ts
    @NPC-to7ts 2 года назад +14

    THANK YOU I WATCHED A DOZEN VIDEOS NONE WORKED YOU ARE A LEGEND!!!

  • @cameroncheney8804
    @cameroncheney8804 Год назад +2

    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!

  • @MExME_Factory
    @MExME_Factory Год назад +3

    Man, really appreciate your video. You saved my life! 🙏🙏🙏

  • @editempireedits
    @editempireedits Год назад +3

    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.

  • @vikashr1388
    @vikashr1388 Год назад +3

    Instantly subscribed. I am a beginner at Unity and this tutorial had exactly what I needed.

  • @Bittergiggle_gaming
    @Bittergiggle_gaming Год назад +1

    This Helped Me A lot Thanks!

  • @Turtle_Dyl0
    @Turtle_Dyl0 7 месяцев назад

    im your 1000th subscriber

  • @Turtle_Dyl0
    @Turtle_Dyl0 7 месяцев назад

    i was your 1000th subscriber

  • @Vota_
    @Vota_ Год назад +1

    great vid, gets to the point fast

  • @ez4noobs950
    @ez4noobs950 2 года назад +2

    Thanks for the tutorial bro,it was awesome.

  • @russellgu8y2447
    @russellgu8y2447 Год назад +1

    Thanks for your help, I watched a few videos from people showing how to only play one sfx.

  • @shaded4438
    @shaded4438 5 месяцев назад

    this is cool; but it doesn't look very scalable, you have a more robust solution?

  • @krystelanndelica8161
    @krystelanndelica8161 Год назад

    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

  • @MootsieCat
    @MootsieCat 2 года назад

    Thanks!

  • @dontCallMe..
    @dontCallMe.. Год назад

    but where can i find these sound effects I have been looking for theme and I didn't find any=[

  • @someguyswhoplayminecraft1534
    @someguyswhoplayminecraft1534 2 года назад +1

    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?

  • @gustavoalexandregustavotim936
    @gustavoalexandregustavotim936 Год назад

    WOW!
    Very useful. Thanks for this tip.

  • @timothyrockwell5742
    @timothyrockwell5742 Год назад

    The second Ori also is missing it's music not just sound efx xD

  • @Will8350
    @Will8350 Год назад

    After I built the game the sound wouldn't play, Do you know why? Great tutorial by the way!

  • @richardlongshaw8079
    @richardlongshaw8079 2 года назад

    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.

  • @jntnow
    @jntnow Год назад

    Great

  • @Kiroto50
    @Kiroto50 Год назад +1

    0:20 You removed the music, too..?

  • @GifuPilled
    @GifuPilled 4 месяца назад

    a psycopath will use light mode in unity, nice tutorial

  • @mrki3lo
    @mrki3lo 5 месяцев назад

    great vide but its 4 minutes instead of 3 :(((((

  • @kiacoder1226
    @kiacoder1226 Год назад

    choon!!!!

  • @MPRGyanStudio888
    @MPRGyanStudio888 2 года назад

    How to add alan voice and unity lip sync

  • @Alex_Plays_LMAO
    @Alex_Plays_LMAO 2 месяца назад

    Wtf does all that code mean ? I’m not learning anything.

    • @Mintie_TTV
      @Mintie_TTV 18 дней назад

      "all that code" and it's 30 lines at most...

  • @commonwombat-h6r
    @commonwombat-h6r 7 месяцев назад +3

    very unclear

  • @katrina415
    @katrina415 7 месяцев назад +2

    Broke my program worst tutorial ever