AudioSource.volume Manual     Reference     Scripting  
Scripting > Runtime Classes > AudioSource
AudioSource.volume

var volume : float

Description

The volume of the audio source.

JavaScripts
audio.volume = 0.2;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
audio.volume = 0.2F;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
audio.volume = 0.2F