Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/FLayoutSaveRestore
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedRef< FTabManager::FLayout > LoadFromConfig
(
const FString& InConfigFileName, |
Given a named DefaultLayout, return any saved version of it from the given ini file, otherwise return the default, also default to open tabs based on bool. | Framework/Docking/LayoutService.h | |
static TSharedRef< FTabManager::FLayout > LoadFromConfig
(
const FString& InConfigFileName, |
Framework/Docking/LayoutService.h |
LoadFromConfig(const FString &, const TSharedRef< FTabManager::FLayout > &, const EOutputCanBeNullptr)
Description
Given a named DefaultLayout, return any saved version of it from the given ini file, otherwise return the default, also default to open tabs based on bool.
| Name | LoadFromConfig |
| 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 TSharedRef < FTabManager::FLayout > LoadFromConfig
(
const FString & InConfigFileName,
const TSharedRef < FTabManager::FLayout > & InDefaultLayout,
const EOutputCanBeNullptr InPrimaryAreaOutputCanBeNullptr
)
Loaded layout or the default.
Parameters
| Name | Remarks |
|---|---|
| InConfigFileName | File to be used to load an existing layout. |
| InDefaultLayout | The layout to be used if the file does not exist. |
| InPrimaryAreaOutputCanBeNullptr | Analog to the EOutputCanBeNullptr argument of FTabManager::RestoreFrom(), but only applied to the PrimaryArea. It specifies if the primary area can still be nullptr even if no valid tabs (or opened tabs) are found. By default, set to EOutputCanBeNullptr::Never. |
| InOutRemovedOlderLayoutVersions | If this TArray is not added, default behavior. If it is added as an argument, older versions of this layout field will be also cleaned from the layout ini file and their names returned in OutRemovedOlderLayoutVersions. To be precise, it will remove fields with a name that contains the same characters, other than the final number(s) and dot(s). E.g., for "UnrealEd_Layout_v1.4", any layout field starting by "UnrealEd_Layout_v" with some numbers and/or dots after the final "v". |
LoadFromConfig(const FString &, const TSharedRef< FTabManager::FLayout > &, const EOutputCanBeNullptr, TArray< FString > &)
| Name | LoadFromConfig |
| 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 TSharedRef < FTabManager::FLayout > LoadFromConfig
(
const FString & InConfigFileName,
const TSharedRef < FTabManager::FLayout > & InDefaultLayout,
const EOutputCanBeNullptr InPrimaryAreaOutputCanBeNullptr,
TArray < FString > & OutRemovedOlderLayoutVersions
)