Audio Source
Last updated
Last updated
Access information about an Audio Source.
Audio Source In
Audio Source
Reference to an Audio Source object.
Outputs:
Is Playing
Boolean
True if the Audio Source is currently playing. Otherwise, false.
Time
Float
The number of seconds from the start of the audio clip that's currently being played.
Volume
Float
How loud the sound is.
There are multiple nodes that you can use to set properties of an Audio Source. For more information, refer to the Audio Source page in the Unity documentation.
The set nodes for an Audio Source have a similar arrangement of inputs and outputs, as described in the following sections.
Inputs:
Enter
Flow
Flow to activate the node.
Audio Source In
Audio Source
Reference to an Audio Source object.
<property>
<varies> [editable]
The value to set for the chosen property.
Outputs:
Exit
Flow
Continue the activating flow.
Available nodes:
Set Audio Clip
Audio Clip
Sets the Audio Clip to be played.
Set Doppler Level
Float
Determines how much Doppler effect will be applied to this audio source (if is set to 0, then no effect is applied).
Set Loop
Boolean
If true, the audio clip repeats after it reaches the end.
Set Max Distance
Float
The distance where the sound stops attenuating at.
Set Min Distance
Float
Within the MinDistance, the sound will stay at loudest possible. Outside MinDistance it will begin to attenuate.
Set Mute
Boolean
If true, the audio is muted.
Set Pitch
Float
The pitch of the audio. 1.0 is normal pitch.
Set Play on Awake
Boolean
If true, the audio will begin to play when the scene loads. If false, you will need to play the audio.
Set Reverb Zone Mix
Float
Sets the amount of the output signal that gets routed to the reverb zones.
Set Spacial Blend
Float
Sets how much the 3D engine has an effect on the audio source.
Set Spread
Float
Sets the spread angle to 3D stereo or multichannel sound in speaker space.
Set Stereo Pan
Float
Sets the position in the stereo field of 2D sounds.
Set Volume
Float
The loudness of the sound.
Rolloff
[Parameter list]
How fast the sound fades. The available options are logarithmic, linear, or custom. For more information, refer to the Types of Rolloff section on the Audio Source page of the Unity documentation.