absolutely great, it really helped me in my work thank you man!!!
@mrmachinehead8059 Жыл бұрын
Great tutorial, quick, easy to follow. :)
@loxxi843311 ай бұрын
Thanks you! love it! I will use this in my future game!!!
@bonfaceosuka Жыл бұрын
I really appreciate this video
@AMINEI-wl9rk3 ай бұрын
public class PlaySound : MonoBehaviour { public AudioSource soundPlayer; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } public void PlayThisSoundEffect() { soundPlayer.Play(); } }
@yuchenz1496 Жыл бұрын
Great video!!! But please make sure you didnt "Mute Audio" while play (in the Game scene)
@Generaal_Quinten4 ай бұрын
keybord a lil bit loud but further its okey
@lightbending2 жыл бұрын
thanks for the video! :D when i was following the tut, i tried dragging in the AudioSource empty as a reference to the button instead. i.e. I was able to make an onclick referencing the audiosource and play it, bypassing the use of a script. is there are reason to set it up with a script over referencing the empty audiosource component?
@brandonkeller16 Жыл бұрын
there's not really a difference I never script for button audio just drag the audio source that's parented to your button into the on click then select playoneshot and then drag the sound you want into the click event its a lot faster to setup and its the same as making a method In a script that calls "sound.Play(); or PlayOneShot(), ect.
@aleksboboychev Жыл бұрын
Cheers Boss!
@gozcu4 Жыл бұрын
Super good
@OmairAhmad47729 ай бұрын
Hello, Sir I want When I Release the button it will automatically becomes Pause().. How can I Do that can You Please Help me with that //Running Sound public void playjump() { footStepSound.enabled = false; SprintSound.Pause(); jumpSound.Play(); }
@alekisdriving63742 жыл бұрын
Thx
@pungkizulkarnain1878 Жыл бұрын
Bagaimana agar format musiknya tidak terditeksi oleh game trsebut?
@jcarpio5410 Жыл бұрын
the sound fx will not turn off when I click the button again?
@Piter001 Жыл бұрын
It works fine, but I have a problem that the sound also turns on when I turn on the scene. I turn on the game and the sound comes along with it. How to fix it?
@BiancaTasso-do7qz5 ай бұрын
On the AudioSource you have to make sure that the "Play on Awake" is disabled :]
@unwrittenarchivesthehallways Жыл бұрын
i rly like the sound effect u showed of the button!! but mine doesnt work. i try to place it on the player :( when player clicks on itself (the playable character is a creature) it makes noise :D that's what's supposed to happen atleast
@jackcard4986 Жыл бұрын
oh that poor keyboard
@X1th Жыл бұрын
what if the scene will change after pressing the button? How to solve the problem?
@Buddyboy246 Жыл бұрын
Do you have solution now?
@RahmadHadi10 Жыл бұрын
i know bro, click your button, and use event trigger on inspector, and add event type "Select" and drag your audio source
@RahmadHadi10 Жыл бұрын
read my reply @@Buddyboy246
@ramadhanidwinoviansyah2 ай бұрын
@@RahmadHadi10 bisa lebih detail ga bang? ini button pindah scene dipakein sound malah kepotong gitu soundnya.