ClockStone Audio Toolkit for Unity - Documentation
AudioControllerStopMusic Method (Single) |
Stops the currently playing music with fade-out.
Namespace: (Default Namespace)
Assembly: AudioToolkit (in AudioToolkit.dll) Version: 8.2.0.0 (8.2.0.0)
Syntax
C#
public static bool StopMusic( float fadeOut )
Parameters
- fadeOut
- Type: SystemSingle
The fade-out time in seconds.
Return Value
Type: Booleantrue if any music was stopped, otherwise false
See Also