AudioSource.volume

var volume : float

Description

The volume of the audio source (0.0 to 1.0).

JavaScript
    @script RequireComponent(AudioSource)
function Start() {
audio.volume = 0.2;
}

using UnityEngine;
using System.Collections;

[RequireComponent(typeof(AudioSource))]
public class example : MonoBehaviour {
void Start() {
audio.volume = 0.2F;
}
}

import UnityEngine
import System.Collections

[RequireComponent(AudioSource)]
class example(MonoBehaviour):

def Start():
audio.volume = 0.2F