Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Sound/SlateSound.h |
Include |
#include "Sound/SlateSound.h" |
struct FSlateSound
An intermediary to make UBaseSound available for Slate to play sounds
Name | Description | ||
---|---|---|---|
|
TObjectPtr< UOb... |
ResourceObject |
Pointer to the USoundBase. |
Name | Description | |
---|---|---|
|
FSlateSound() |
Default constructor. |
Name | Description | ||
---|---|---|---|
|
UObject *... |
GetResourceObject() |
Get the resource object associated with this sound |
|
SerializeFromMismatchedTag ( |
Used to upgrade a FName property to a FSlateSound property |
|
|
SetResourceObject ( |
Sets the sound that is supposed to be played. |
Name | Description | ||
---|---|---|---|
|
LegacyResourceName_DEPRECATED |
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 |
|
|
TWeakObjectPtr<... |
LegacyResourceObject_DEPRECATED |
A weak pointer the the resource loaded from the legacy resource name; may be null if the resource needs (re)loading |
Name | Description | ||
---|---|---|---|
|
FromName_DEPRECATED ( |
Construct a FSlateSound from a FName |
|
|
StripLegacyData_DEPRECATED() |
Used when updating the ResourceObject within an FSlateSound from the editor to clear out any legacy data that may be set. |