![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SlateSound.h>
Public Member Functions | |
| SLATECORE_API | FSlateSound () |
| SLATECORE_API | FSlateSound (const FSlateSound &) |
| SLATECORE_API FSlateSound & | operator= (const FSlateSound &) |
| SLATECORE_API UObject * | GetResourceObject () const |
| void | SetResourceObject (class UObject *InResourceObject) |
| SLATECORE_API void | StripLegacyData_DEPRECATED () |
| SLATECORE_API bool | SerializeFromMismatchedTag (struct FPropertyTag const &Tag, FStructuredArchive::FSlot Slot) |
Static Public Member Functions | |
| static SLATECORE_API FSlateSound | FromName_DEPRECATED (const FName &SoundName) |
Protected Attributes | |
| TObjectPtr< UObject > | ResourceObject |
| FName | LegacyResourceName_DEPRECATED |
| TWeakObjectPtr< UObject > | LegacyResourceObject_DEPRECATED |
An intermediary to make UBaseSound available for Slate to play sounds
| FSlateSound::FSlateSound | ( | ) |
Default constructor.
|
default |
Default copy constructor.
|
static |
Construct a FSlateSound from a FName
| SoundName | The name of the sound to load, eg) SoundCue'/Game/QA_Assets/Sound/TEST_Music_Ambient.TEST_Music_Ambient' |
| UObject * FSlateSound::GetResourceObject | ( | ) | const |
Get the resource object associated with this sound
|
default |
Default copy-assignment operator.
| bool FSlateSound::SerializeFromMismatchedTag | ( | struct FPropertyTag const & | Tag, |
| FStructuredArchive::FSlot | Slot | ||
| ) |
Used to upgrade a FName property to a FSlateSound property
Sets the sound that is supposed to be played.
| void FSlateSound::StripLegacyData_DEPRECATED | ( | ) |
Used when updating the ResourceObject within an FSlateSound from the editor to clear out any legacy data that may be set.
|
protected |
The legacy resource name; only used by sounds that have been set-up in code, or otherwise upgraded from old FName properties, set to NAME_None in non-legacy instances
|
mutableprotected |
A weak pointer the the resource loaded from the legacy resource name; may be null if the resource needs (re)loading
|
protected |
Pointer to the USoundBase. Holding onto it as a UObject because USoundBase is not available in Slate core. Edited via FSlateSoundStructCustomization to ensure you can only set USoundBase assets on it.