FSlateApplication::PlaySound

Play SoundToPlay. Interrupt previous sound if one is playing.

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h

Include

#include "Framework/Application/SlateApplication.h"

Source

/Engine/Source/Runtime/Slate/Private/Framework/Application/SlateApplication.cpp

Syntax

void PlaySound
(
    const FSlateSound & SoundToPlay,
    int32 UserIndex
) const

Remarks

Play SoundToPlay. Interrupt previous sound if one is playing.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss