FSlateIcon::FSlateIcon

Creates and initializes a new icon from a style set and style name

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Textures/SlateIcon.h

Include

#include "Textures/SlateIcon.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Textures/SlateIcon.cpp

Syntax

FSlateIcon
(
    const FName InStyleSetName,
    const FName InStyleName,
    const FName InSmallStyleName,
    const FName InStatusOverlayStyleName
)

Remarks

Creates and initializes a new icon from a style set and style name

Parameters

Parameter

Description

InStyleSetName

The name of the style set the icon can be found in.

StyleName

The name of the style for the icon

InSmallStyleName

The name of the style for the small icon

InStatusOverlayStyleName

The name of the style for a status icon to overlay on the base image