Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/FLayoutSaveRestore
Description
Read the desired FText value from the desired section of a named config file. This function should only be used to load localization names (e.g., LayoutName, LayoutDescription). For loading the FTabManager::FLayout, check SaveToConfig.
| Name | LoadSectionFromConfig |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Docking/LayoutService.h |
| Include Path | #include "Framework/Docking/LayoutService.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Framework/Docking/LayoutService.cpp |
static FText LoadSectionFromConfig
(
const FString & InConfigFileName,
const FString & InSectionName,
const bool bIsOptional
)
Loaded FText associated for that section.
Parameters
| Name | Remarks |
|---|---|
| InConfigFileName | file to be used to load an existing layout. |
| InSectionName | the name of the section to be read. |
| bIsOptional | if false, an error may be output if the section doesn't exist. |