engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Protected 属性 | 所有成员列表
FSlateSound结构体 参考

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

成员函数说明

◆ FromName_DEPRECATED()

static FSlateSound FSlateSound::FromName_DEPRECATED ( const FName &  SoundName)
static

Construct a FSlateSound from a FName

注解
This functionality is deprecated and should only be used for upgrading old data
参数
SoundNameThe name of the sound to load, eg) SoundCue'/Game/QA_Assets/Sound/TEST_Music_Ambient.TEST_Music_Ambient'
返回
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

◆ GetResourceObject()

UObject * FSlateSound::GetResourceObject ( ) const

Get the resource object associated with this sound

注解
Ensure that you only access the resource as a USoundBase
返回
The resource object, or null if this sound resource is empty

类成员变量说明

◆ ResourceObject

UObject* FSlateSound::ResourceObject
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.


该结构体的文档由以下文件生成: