An intermediary to make UBaseSound available for Slate to play sounds 更多...
#include <SlateSound.h>
Public 成员函数 | |
| FSlateSound () | |
| Default constructor. | |
| UObject * | GetResourceObject () const |
| Get the resource object associated with this sound 更多... | |
| bool | SerializeFromMismatchedTag (struct FPropertyTag const &Tag, FStructuredArchive::FSlot Slot) |
| Used to upgrade a FName property to a FSlateSound property | |
| void | SetResourceObject (class UObject *InResourceObject) |
| Sets the sound that is supposed to be played. | |
| void | StripLegacyData_DEPRECATED () |
| Used when updating the ResourceObject within an FSlateSound from the editor to clear out any legacy data that may be set. | |
静态 Public 成员函数 | |
| static FSlateSound | FromName_DEPRECATED (const FName &SoundName) |
| Construct a FSlateSound from a FName 更多... | |
Protected 属性 | |
| FName | 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< UObject > | LegacyResourceObject_DEPRECATED |
| A weak pointer the the resource loaded from the legacy resource name; may be null if the resource needs (re)loading | |
| UObject * | ResourceObject |
| Pointer to the USoundBase. 更多... | |
An intermediary to make UBaseSound available for Slate to play sounds
|
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
|
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.