FSlateSound::FromName_DEPRECATED

Construct a [FSlateSound](API\Runtime\SlateCore\Sound\FSlateSound) from a [FName](API\Runtime\Core\UObject\FName)

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Sound/SlateSound.h

Include

#include "Sound/SlateSound.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Sound/SlateSound.cpp

Syntax

static FSlateSound FromName_DEPRECATED
(
    const FName & SoundName
)

Remarks

Construct a FSlateSound from a FName

This functionality is deprecated and should only be used for upgrading old data

Returns

An FSlateSound object with a ResourceObject pointer that's either set the given sound, or points to null if the sound could not be found

Parameters

Parameter

Description

SoundName

The name of the sound to load, eg) SoundCue'/Game/QA_Assets/Sound/TEST_Music_Ambient.TEST_Music_Ambient'

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