AudioSource
.rolloffMode
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
AudioSource
AudioSource
.rolloffMode
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
var
rolloffMode :
AudioRolloffMode
Description
Sets/Gets how the AudioSource attenuates over distance
JavaScripts
JavaScript
C#
Boo
audio.rolloffMode =
AudioRolloffMode.Linear
;
using UnityEngine;
using System.Collections;
public
class
example :
MonoBehaviour
{
void
Awake
() {
audio.rolloffMode =
AudioRolloffMode.Linear
;
}
}
import
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
def
Awake
():
audio.rolloffMode =
AudioRolloffMode.Linear