UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSlateIconFinder Class Reference

#include <SlateIconFinder.h>

Static Public Member Functions

static SLATECORE_API FSlateIcon FindIconForClass (const UStruct *InStruct, const FName &InDefaultName=FName())
 
static SLATECORE_API FSlateIcon FindCustomIconForClass (const UStruct *InStruct, const TCHAR *InStyleBasePath, const FName &InDefaultName=FName())
 
static const FSlateBrushFindIconBrushForClass (const UStruct *InStruct, const FName &InDefaultName=FName())
 
static const FSlateBrushFindCustomIconBrushForClass (const UStruct *InStruct, const TCHAR *InStyleBasePath, const FName &InDefaultName=FName())
 
static SLATECORE_API FSlateIcon FindIcon (const FName &InIconName)
 

Detailed Description

Class used for finding icons within a registered set of styles

Member Function Documentation

◆ FindCustomIconBrushForClass()

static const FSlateBrush * FSlateIconFinder::FindCustomIconBrushForClass ( const UStruct InStruct,
const TCHAR InStyleBasePath,
const FName InDefaultName = FName() 
)
inlinestatic

Find a custom icon to use for the supplied struct, according to the specified base style

Parameters
InStructThe struct to locate an icon for
InStyleBasePathStyle base path to use for the search (e.g. ClassIcon, or ClassThumbnail)
InDefaultNameThe default icon name to use, if no specialized icon could be found
Returns
A slate brush, or nullptr if no icon was found

◆ FindCustomIconForClass()

FSlateIcon FSlateIconFinder::FindCustomIconForClass ( const UStruct InStruct,
const TCHAR InStyleBasePath,
const FName InDefaultName = FName() 
)
static

Find a custom icon to use for the supplied struct, according to the specified base style

Parameters
InStructThe struct to locate an icon for
InStyleBasePathStyle base path to use for the search (e.g. ClassIcon, or ClassThumbnail)
InDefaultNameThe default icon name to use, if no specialized icon could be found
Returns
An FSlateIcon structure defining the struct's icon

◆ FindIcon()

FSlateIcon FSlateIconFinder::FindIcon ( const FName InIconName)
static

Find the first occurrence of a brush represented by the specified IconName in any of the registered style sets

Parameters
InIconNameThe fully qualified style name of the icon to find
Returns
An FSlateIcon structure

◆ FindIconBrushForClass()

static const FSlateBrush * FSlateIconFinder::FindIconBrushForClass ( const UStruct InStruct,
const FName InDefaultName = FName() 
)
inlinestatic

Find a slate brush to use for the supplied struct's icon

Parameters
InStructThe struct to locate an icon for
InDefaultNameThe default icon name to use, if no specialized icon could be found
Returns
A slate brush, or nullptr if no icon was found

◆ FindIconForClass()

FSlateIcon FSlateIconFinder::FindIconForClass ( const UStruct InStruct,
const FName InDefaultName = FName() 
)
static

Find the icon to use for the supplied struct

Parameters
InStructThe struct to locate an icon for
InDefaultNameThe default icon name to use, if no specialized icon could be found
Returns
An FSlateIcon structure defining the struct's icon

The documentation for this class was generated from the following files: