Navigation
API > API/Runtime > API/Runtime/SlateCore
Single point of access for various default styles used in UMG for runtime and editor with each style already having it's colors unlinked for reuse
| Name | FDefaultStyleCache |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Styling/DefaultStyleCache.h |
| Include Path | #include "Styling/DefaultStyleCache.h" |
Syntax
struct FDefaultStyleCache
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDefaultStyleCache() |
Styling/DefaultStyleCache.h |
Structs
| Name | Remarks |
|---|---|
| FStyles | Internal style default holder struct, used so that one can get a bundle of defaults relevant for runtime or editor |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Editor | FStyles | Styling/DefaultStyleCache.h | ||
| Runtime | FStyles | Styling/DefaultStyleCache.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FDefaultStyleCache & Get() |
Singleton getter, however private used since GetRuntime & GetEditor is preferred for styles | Styling/DefaultStyleCache.h | |
static const FStyles & GetEditor() |
Gets singleton and returns editor styles from singleton | Styling/DefaultStyleCache.h | |
static const FStyles & GetRuntime() |
Gets singleton and returns runtime styles from singleton | Styling/DefaultStyleCache.h |