Creating a Mute Button in Unity

Ғылым және технология

This video will explain how to change the image of a button and turn a sound on and off.
0:00 - Intro
0:33 - How to change the button image
3:45 - How to turn on and off a sound
6:46 - Outro

Пікірлер: 32

  • @vivianamateusgutierrez2090
    @vivianamateusgutierrez2090 Жыл бұрын

    This was by far the clearest video tutorial I've ever seen in my entire life! I'm Just starting with unity and know nothing about scripting, however, you explained it super easy! Looooove it!

  • @michaelstone1217
    @michaelstone12172 жыл бұрын

    Very good Tutorial 🙏 It actually worked ! Thank you!

  • @rubelhossain1392
    @rubelhossain1392 Жыл бұрын

    Thank you, This video Very help me to create my game sound on of a button, I love it.

  • @BeltrameJuan
    @BeltrameJuan2 жыл бұрын

    Thank You Very much for this video!!! It helps me a lott

  • @jcarpio5410
    @jcarpio5410 Жыл бұрын

    exactly what I need, thank youu

  • @atokosto
    @atokosto2 жыл бұрын

    Again 😇 Nice tutorial 🔥

  • @bonfaceosuka
    @bonfaceosuka Жыл бұрын

    thank you alot for this video

  • @jesusgod4862
    @jesusgod48622 жыл бұрын

    tq so much madam ...

  • @Questo000
    @Questo0002 жыл бұрын

    Thanks

  • @conxrl
    @conxrl2 жыл бұрын

    thanks :)

  • @talismanskulls2857
    @talismanskulls2857 Жыл бұрын

    cool concept. Tried to adapt it so it would mute a slider also calling on Audio Source but meh, it got wonky. LOL. Thanks for the tutorial.

  • @sunghyeonlee7923
    @sunghyeonlee792310 ай бұрын

    고마워요 사랑해요

  • @kingash2326
    @kingash23262 жыл бұрын

    great

  • @engineer_kholod
    @engineer_kholod Жыл бұрын

    اشكرك

  • @widyanurs289
    @widyanurs2898 ай бұрын

    how to add the sounds in the first maincamera?

  • @piyushrahi478
    @piyushrahi4782 жыл бұрын

    I wanna make my sfx button work but its picking background music and now i have two icons sfx and music one, both of them are playing and pausing background music.

  • @UnityMechanics

    @UnityMechanics

    2 жыл бұрын

    Make sure each button has an audio source with a different audio clip. The audio clip is the sound you want to start/stop.

  • @lora6938
    @lora69382 жыл бұрын

    Hello Kind Lady! How are you there? Here's what I wanted to ask, is it possible through code to influence the * PhysicMaterial * on Bounciness to change its value by clicking something? Or through the * Is Trigger * collider, when something hits it, Bounciness changes the value. Or maybe when you need the material will be turned off and when you need to turn it on !? Is this even possible with PhysicMaterial?

  • @UnityMechanics

    @UnityMechanics

    2 жыл бұрын

    You can modify the physics material through the collider of your object. In the script get the collider (for a cube box collider, sphere spherecollider, etc) public BoxCollider collider; then say collider.material.bounciness = 0.5f; Mae sure to include the f for float after the value you want. Hope this helps!

  • @lora6938

    @lora6938

    2 жыл бұрын

    @@UnityMechanics I completely forgot to answer you. I haven't tried it yet, but I'll try. Thank you!

  • @lora6938

    @lora6938

    2 жыл бұрын

    @Lightvio 🙂

  • @lora6938

    @lora6938

    2 жыл бұрын

    @Lightvio I'm woman, same

  • @sheilagea
    @sheilagea7 ай бұрын

    Hi! Thanks for the video tutorial. How do I make the turn-off sound continue in the following scenes?

  • @UnityMechanics

    @UnityMechanics

    5 ай бұрын

    You would need to have attach this script to each scene

  • @yolamutiara3059

    @yolamutiara3059

    25 күн бұрын

    @@UnityMechanics Does this apply to the switch button too?

  • @radouaneboutaboute156
    @radouaneboutaboute1562 жыл бұрын

    many thanks, please make a tutorial about video player button

  • @UnityMechanics

    @UnityMechanics

    2 жыл бұрын

    You're welcome! Would you like a video about how to start/stop a video with a button?

  • @UnityMechanics

    @UnityMechanics

    2 жыл бұрын

    kzread.info/dash/bejne/mKJ3sKSPlLi0k7A.html

  • @radouaneboutaboute156

    @radouaneboutaboute156

    2 жыл бұрын

    @@UnityMechanics thank you 👌👍

  • @jcarpio5410
    @jcarpio5410 Жыл бұрын

    what should i do if i want the music to start from the top every time I turn it off and on again? thank you

  • @UnityMechanics

    @UnityMechanics

    Жыл бұрын

    Instead of muting, stop and play the music. So instead say audioSource.Stop(); and audioSource.Play(); Hope this helps!

  • @user-ow5rk8vq8t
    @user-ow5rk8vq8t Жыл бұрын

    @SamYam is that you?

Келесі