Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Slate
Inheritance Hierarchy
- FSlateStyleSet
- FGCObject
- FSlateGameResources
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Slate/SlateGameResources.h |
| Include | #include "Slate/SlateGameResources.h" |
Syntax
class FSlateGameResources :
public FSlateStyleSet,
public FGCObject
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSlateGameResources
(
const FName& InStyleSetName |
Construct a style chunk. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddAsset
(
const FAssetData& InAddedAssetData |
Callback registered to the Asset Registry to be notified when an asset is added. | |
| void | AddAssetToCache
(
UObject* InStyleObject, |
||
| FName | GenerateMapName
(
UObject* StyleObject |
||
| FName | GenerateMapName
(
const FAssetData& AssetData |
||
| FName | GetCleanName
(
const FName& AssetName |
Takes paths from the Editor's "Copy Reference" button and turns them into paths accepted by this object. | |
| UCurveFloat * | GetCurveFloat
(
const FName AssetName |
||
| UCurveLinearColor * | GetCurveLinearColor
(
const FName AssetName |
||
| UCurveVector * | GetCurveVector
(
const FName AssetName |
||
| void | Initialize
(
const FString& ScopeToDirectory, |
New() | |
| void | Log
(
const TSharedRef< class FTokenizedMessage >& Message |
||
| TSharedRef< FSlateGameResources > | Create a new Slate resource set that is scoped to the ScopeToDirectory. | ||
| void | RemoveAsset
(
const FAssetData& InRemovedAssetData |
Callback registered to the Asset Registry to be notified when an asset is removed. | |
| void | RemoveAssetFromCache
(
const FAssetData& AssetData |
||
| bool | ShouldCache
(
const FAssetData& InAssetData |
Overridden from FSlateStyleSet
| Type | Name | Description | |
|---|---|---|---|
| void | SetContentRoot
(
const FString& InContentRootDir |
Overridden from ISlateStyle
| Type | Name | Description | |
|---|---|---|---|
| const FSlateBrush * | GetBrush
(
const FName PropertyName, |
||
| const FSlateBrush * | GetOptionalBrush
(
const FName PropertyName, |
Just like GetBrush, but returns DefaultBrush instead of the "missing brush" image when the resource is not found. | |
| void | GetResources
(
TArray< const FSlateBrush* >& OutResources |
Populate an array of FSlateBrush with resources consumed by this style chunk. | |
| const FSlateWidgetStyle * | GetWidgetStyleInternal
(
const FName DesiredTypeName, |
||
| void | Log
(
ISlateStyle::EStyleMessageSeverity Severity, |
Overridden from FGCObject
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
Pure virtual that must be overloaded by the inheriting class. | |
| FString | Overload this method to report a name for your referencer |