FSlateGameResources

Windows
MacOS
Linux

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

Name Description

Public function

FSlateGameResources

(
    const FName& InStyleSetName
)

Construct a style chunk.

Destructors

Name Description

Public function Virtual

~FSlateGameResources()

Functions

Name Description

Protected function

void

 

AddAsset

(
    const FAssetData& InAddedAssetData
)

Callback registered to the Asset Registry to be notified when an asset is added.

Protected function

void

 

AddAssetToCache

(
    UObject* InStyleObject,
    bool bEnsureUniqueness
)

Protected function

FName

 

GenerateMapName

(
    UObject* StyleObject
)

Protected function

FName

 

GenerateMapName

(
    const FAssetData& AssetData
)

Protected function Const

FName

 

GetCleanName

(
    const FName& AssetName
)

Takes paths from the Editor's "Copy Reference" button and turns them into paths accepted by this object.

Public function Const

UCurveFloat ...

 

GetCurveFloat

(
    const FName AssetName
)

Public function Const

UCurveLinear...

 

GetCurveLinearColor

(
    const FName AssetName
)

Public function Const

UCurveVector...

 

GetCurveVector

(
    const FName AssetName
)

Public function

void

 

Initialize

(
    const FString& ScopeToDirectory,
    const FString& InBasePath
)

New()

Protected function Virtual Const

void

 

Log

(
    const TSharedRef< class FTokenizedM...
)

Public function Static

TSharedRef< ...

 

New

(
    const FName& InStyleSetName,
    const FString& ScopeToDirectory,
    const FString& InBasePath
)

Create a new Slate resource set that is scoped to the ScopeToDirectory.

Protected function

void

 

RemoveAsset

(
    const FAssetData& InRemovedAssetDa...
)

Callback registered to the Asset Registry to be notified when an asset is removed.

Protected function

void

 

RemoveAssetFromCache

(
    const FAssetData& AssetData
)

Protected function

bool

 

ShouldCache

(
    const FAssetData& InAssetData
)

Overridden from FSlateStyleSet

Name Description

Public function Virtual

void

 

SetContentRoot

(
    const FString& InContentRootDir
)

Overridden from ISlateStyle

Name Description

Public function Virtual Const

const FSlate...

 

GetBrush

(
    const FName PropertyName,
    const ANSICHAR* Specifier
)

Public function Virtual Const

const FSlate...

 

GetOptionalBrush

(
    const FName PropertyName,
    const ANSICHAR* Specifier,
    const FSlateBrush*const Defaul...
)

Just like GetBrush, but returns DefaultBrush instead of the "missing brush" image when the resource is not found.

Public function Virtual Const

void

 

GetResources

(
    TArray< const FSlateBrush* >&...
)

Populate an array of FSlateBrush with resources consumed by this style chunk.

Protected function Virtual Const

const FSlate...

 

GetWidgetStyleInternal

(
    const FName DesiredTypeName,
    const FName StyleName
)

Protected function Virtual Const

void

 

Log

(
    ISlateStyle::EStyleMessageSeverity ...,
    const FText& Message
)

Overridden from FGCObject

Name Description

Protected function Virtual

void

 

AddReferencedObjects

(
    FReferenceCollector& Collector
)

Pure virtual that must be overloaded by the inheriting class.

Protected function Virtual Const

FString

 

GetReferencerName()

Use this method to report a name for your referencer.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss