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 Жыл бұрын
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!
@michaelstone12172 жыл бұрын
Very good Tutorial 🙏 It actually worked ! Thank you!
@rubelhossain1392 Жыл бұрын
Thank you, This video Very help me to create my game sound on of a button, I love it.
@BeltrameJuan2 жыл бұрын
Thank You Very much for this video!!! It helps me a lott
@jcarpio5410 Жыл бұрын
exactly what I need, thank youu
@atokosto2 жыл бұрын
Again 😇 Nice tutorial 🔥
@bonfaceosuka Жыл бұрын
thank you alot for this video
@jesusgod48622 жыл бұрын
tq so much madam ...
@Questo0002 жыл бұрын
Thanks
@conxrl2 жыл бұрын
thanks :)
@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.
@sunghyeonlee792310 ай бұрын
고마워요 사랑해요
@kingash23262 жыл бұрын
great
@engineer_kholod Жыл бұрын
اشكرك
@widyanurs2898 ай бұрын
how to add the sounds in the first maincamera?
@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
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.
@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
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
2 жыл бұрын
@@UnityMechanics I completely forgot to answer you. I haven't tried it yet, but I'll try. Thank you!
@lora6938
2 жыл бұрын
@Lightvio 🙂
@lora6938
2 жыл бұрын
@Lightvio I'm woman, same
@sheilagea7 ай бұрын
Hi! Thanks for the video tutorial. How do I make the turn-off sound continue in the following scenes?
@UnityMechanics
5 ай бұрын
You would need to have attach this script to each scene
@yolamutiara3059
25 күн бұрын
@@UnityMechanics Does this apply to the switch button too?
@radouaneboutaboute1562 жыл бұрын
many thanks, please make a tutorial about video player button
@UnityMechanics
2 жыл бұрын
You're welcome! Would you like a video about how to start/stop a video with a button?
@UnityMechanics
2 жыл бұрын
kzread.info/dash/bejne/mKJ3sKSPlLi0k7A.html
@radouaneboutaboute156
2 жыл бұрын
@@UnityMechanics thank you 👌👍
@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
Жыл бұрын
Instead of muting, stop and play the music. So instead say audioSource.Stop(); and audioSource.Play(); Hope this helps!
Пікірлер: 32
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!
Very good Tutorial 🙏 It actually worked ! Thank you!
Thank you, This video Very help me to create my game sound on of a button, I love it.
Thank You Very much for this video!!! It helps me a lott
exactly what I need, thank youu
Again 😇 Nice tutorial 🔥
thank you alot for this video
tq so much madam ...
Thanks
thanks :)
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.
고마워요 사랑해요
great
اشكرك
how to add the sounds in the first maincamera?
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
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.
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
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
2 жыл бұрын
@@UnityMechanics I completely forgot to answer you. I haven't tried it yet, but I'll try. Thank you!
@lora6938
2 жыл бұрын
@Lightvio 🙂
@lora6938
2 жыл бұрын
@Lightvio I'm woman, same
Hi! Thanks for the video tutorial. How do I make the turn-off sound continue in the following scenes?
@UnityMechanics
5 ай бұрын
You would need to have attach this script to each scene
@yolamutiara3059
25 күн бұрын
@@UnityMechanics Does this apply to the switch button too?
many thanks, please make a tutorial about video player button
@UnityMechanics
2 жыл бұрын
You're welcome! Would you like a video about how to start/stop a video with a button?
@UnityMechanics
2 жыл бұрын
kzread.info/dash/bejne/mKJ3sKSPlLi0k7A.html
@radouaneboutaboute156
2 жыл бұрын
@@UnityMechanics thank you 👌👍
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
Жыл бұрын
Instead of muting, stop and play the music. So instead say audioSource.Stop(); and audioSource.Play(); Hope this helps!
@SamYam is that you?