AudioSource
.Pause
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
AudioSource
AudioSource
.Pause
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
AudioSource
All Members
Variables
bypassEffects
clip
dopplerLevel
ignoreListenerVolume
isPlaying
loop
maxDistance
minDistance
mute
pan
panLevel
pitch
playOnAwake
priority
rolloffMode
spread
time
timeSamples
velocityUpdateMode
volume
Functions
GetOutputData
GetSpectrumData
Pause
Play
PlayOneShot
Stop
Class Functions
PlayClipAtPoint
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
function
Pause () :
void
Description
Pauses playing the
clip
.
JavaScripts
JavaScript
C#
Boo
audio.Pause();
using UnityEngine;
using System.Collections;
public
class
example :
MonoBehaviour
{
void
Awake
() {
audio.Pause();
}
}
import
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
def
Awake
():
audio.Pause()
See Also:
Play
,
Stop
functions.