- Home /
lower volume on audio clip C#
this may sound like a silly question, but how do I change the volume of the audio clips I have put in a script. the audio.volume = 0.0; doesn't work as it changes the audio source, but not what's in my script. here is part of it:
public AudioClip footSteps1;
AudioSource.PlayClipAtPoint(footSteps1, transform.position);
those are what I used, so how do I change the volume of them???
Answer by Mike 3 · Sep 25, 2010 at 12:57 PM
You'd use the overload of the function with a volume parameter:
float volume = 0.5f;
AudioSource.PlayClipAtPoint(footSteps1, transform.position, volume);
nothing change for me :( 0 errors but the sound still low
Try this
AudioSource.volume= 0.5f;
AudioSource.PlayClipAtPoint(footSteps1, transform.position, volume);
Your answer
Follow this Question
Related Questions
sound distance between camera and audio source 2 Answers
Rigidbody crate collide sound. 0 Answers
Can't select audio clip even though it's there 1 Answer