AudioListener
.volume
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
AudioListener
AudioListener
.volume
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
AudioListener
All Members
Variables
velocityUpdateMode
Class Variables
pause
volume
Class Functions
GetOutputData
GetSpectrumData
Inherited Variables
animation
audio
camera
collider
constantForce
enabled
gameObject
guiText
guiTexture
hideFlags
hingeJoint
light
name
networkView
particleEmitter
renderer
rigidbody
tag
transform
Inherited Functions
BroadcastMessage
CompareTag
GetComponent
GetComponent.<T>
GetComponentInChildren
GetComponentInChildren.<T>
GetComponents
GetComponents.<T>
GetComponentsInChildren
GetComponentsInChildren.<T>
GetInstanceID
SendMessage
SendMessageUpwards
ToString
Inherited Class Functions
Destroy
DestroyImmediate
DontDestroyOnLoad
FindObjectOfType
FindObjectsOfType
Instantiate
Instantiate.<T>
operator !=
operator ==
operator bool
static
var
volume :
float
Description
Controls the game sound volume.
JavaScripts
JavaScript
C#
Boo
AudioListener.volume
= 0.5;
using UnityEngine;
using System.Collections;
public
class
example :
MonoBehaviour
{
void
Awake
() {
AudioListener.volume
= 0.5F;
}
}
import
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
def
Awake
():
AudioListener.volume
= 0.5F