absolutely great, it really helped me in my work thank you man!!!
@loxxi8433
10 ай бұрын
Thanks you! love it! I will use this in my future game!!!
@bonfaceosuka
Жыл бұрын
I really appreciate this video
@jcarpio5410
Жыл бұрын
the sound fx will not turn off when I click the button again?
@aleksboboychev
Жыл бұрын
Cheers Boss!
@lightbending
2 жыл бұрын
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.
@yuchenz1496
Жыл бұрын
Great video!!! But please make sure you didnt "Mute Audio" while play (in the Game scene)
@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
@Generaal_Quinten
3 ай бұрын
keybord a lil bit loud but further its okey
@pungkizulkarnain1878
Жыл бұрын
Bagaimana agar format musiknya tidak terditeksi oleh game trsebut?
@gozcu4
Жыл бұрын
Super good
@OmairAhmad4772
8 ай бұрын
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(); }
@alekisdriving6374
Жыл бұрын
Thx
@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-do7qz
4 ай бұрын
On the AudioSource you have to make sure that the "Play on Awake" is disabled :]
@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
11 ай бұрын
i know bro, click your button, and use event trigger on inspector, and add event type "Select" and drag your audio source
@RahmadHadi10
11 ай бұрын
read my reply @@Buddyboy246
@ramadhanidwinoviansyah
Ай бұрын
@@RahmadHadi10 bisa lebih detail ga bang? ini button pindah scene dipakein sound malah kepotong gitu soundnya.
@jerstin2442
Ай бұрын
@@RahmadHadi10 OH MY GOD THANK YOU
@AMINEI-wl9rk
3 ай бұрын
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(); } }
Пікірлер: 26