How to adjust sound when the sound is a member variable.

I have a script that make a sound, but there is no way to adjust the volume, it is so low.

audio.PlayOneShot(sound);

[edit] maybe with a image will help.

In the project view, the sound play loud and clear, but not anymore at runtime.
How can I adjust individual sound volume?

188833--6690--$sans_titre_195.jpg

audio.volume = 0.2;

First, make sure your Rolloff value is set to be low. If that is not enough, you’ll need to boost the sound level outside of Unity; you can’t make sounds louder in Unity itself.

Had a mono behavior component on the same object. It got the same sound I was using in my script. When I deleted it the sound was back loud.
:smile: