bEnableEditorOverlay
bEnableEditorOverlay
#Overview
name: bEnableEditorOverlay
The value of this variable can be defined or overridden in .ini config files. 2
.ini config files referencing this setting variable.
It is referenced in 7
C++ source files.
#Summary
#Usage in the C++ source code
The purpose of bEnableEditorOverlay is to control the visibility of the Epic Online Services (EOS) overlay when running the game in the Unreal Editor. This setting is specifically designed for development and testing purposes within the editor environment.
This setting variable is primarily used by the OnlineSubsystemEOS plugin, which is part of Unreal Engine’s online subsystem framework. It’s specifically related to the EOS integration, which provides various online services for games.
The value of this variable is set in the engine configuration files (GEngineIni) and can be accessed or modified through the UEOSSettings class. It’s loaded from the configuration in the ManualGetSettings function and can be changed through the editor interface, triggering the PostEditChangeProperty function.
bEnableEditorOverlay interacts with other EOS-related variables, particularly bEnableOverlay and bEnableSocialOverlay. It’s part of a group of settings that control different aspects of the EOS overlay functionality.
Developers must be aware that this variable only affects the overlay in the editor environment. It won’t have any effect on packaged games or when running in non-editor modes. Also, it’s important to note that the overlay is disabled by default in the editor (initialized to false).
Best practices when using this variable include:
- Only enable it when necessary for testing EOS functionality within the editor.
- Be aware that enabling the overlay in the editor might affect performance or behavior differently than in a packaged game.
- Remember to disable it before packaging the game, as it’s not intended for use in production builds.
- Use it in conjunction with other EOS settings to ensure a complete and consistent setup for testing.
#Setting Variables
#References In INI files
Location: <Workspace>/Projects/Lyra/Config/Custom/EOS/DefaultEngine.ini:24, section: [/Script/OnlineSubsystemEOS.EOSSettings]
- INI Section:
/Script/OnlineSubsystemEOS.EOSSettings
- Raw value:
True
- Is Array:
False
Location: <Workspace>/Projects/Lyra/Config/Custom/SteamEOS/DefaultEngine.ini:29, section: [/Script/OnlineSubsystemEOS.EOSSettings]
- INI Section:
/Script/OnlineSubsystemEOS.EOSSettings
- Raw value:
True
- Is Array:
False
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/EOSSettings.cpp:136
Scope (from outer to inner):
file
function FEOSSettings::FEOSSettings
Source code excerpt:
, bEnableOverlay(false)
, bEnableSocialOverlay(false)
, bEnableEditorOverlay(false)
, bPreferPersistentAuth(false)
, bUseEAS(false)
, bUseEOSConnect(false)
, bUseEOSSessions(false)
, bMirrorStatsToEOS(false)
, bMirrorAchievementsToEOS(false)
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/EOSSettings.cpp:185
Scope (from outer to inner):
file
function const FEOSSettings& UEOSSettings::ManualGetSettings
Source code excerpt:
GConfig->GetBool(INI_SECTION, TEXT("bEnableOverlay"), CachedSettings->bEnableOverlay, GEngineIni);
GConfig->GetBool(INI_SECTION, TEXT("bEnableSocialOverlay"), CachedSettings->bEnableSocialOverlay, GEngineIni);
GConfig->GetBool(INI_SECTION, TEXT("bEnableEditorOverlay"), CachedSettings->bEnableEditorOverlay, GEngineIni);
GConfig->GetBool(INI_SECTION, TEXT("bPreferPersistentAuth"), CachedSettings->bPreferPersistentAuth, GEngineIni);
GConfig->GetBool(INI_SECTION, TEXT("bUseEAS"), CachedSettings->bUseEAS, GEngineIni);
GConfig->GetBool(INI_SECTION, TEXT("bUseEOSConnect"), CachedSettings->bUseEOSConnect, GEngineIni);
GConfig->GetBool(INI_SECTION, TEXT("bUseEOSSessions"), CachedSettings->bUseEOSSessions, GEngineIni);
GConfig->GetBool(INI_SECTION, TEXT("bMirrorStatsToEOS"), CachedSettings->bMirrorStatsToEOS, GEngineIni);
GConfig->GetBool(INI_SECTION, TEXT("bMirrorAchievementsToEOS"), CachedSettings->bMirrorAchievementsToEOS, GEngineIni);
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/EOSSettings.cpp:217
Scope (from outer to inner):
file
function FEOSSettings UEOSSettings::ToNative
Source code excerpt:
Native.bEnableOverlay = bEnableOverlay;
Native.bEnableSocialOverlay = bEnableSocialOverlay;
Native.bEnableEditorOverlay = bEnableEditorOverlay;
Native.bPreferPersistentAuth = bPreferPersistentAuth;
Native.bUseEAS = bUseEAS;
Native.bUseEOSConnect = bUseEOSConnect;
Native.bUseEOSSessions = bUseEOSSessions;
Native.bMirrorStatsToEOS = bMirrorStatsToEOS;
Native.bMirrorAchievementsToEOS = bMirrorAchievementsToEOS;
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/EOSSettings.cpp:349
Scope (from outer to inner):
file
function void UEOSSettings::PostEditChangeProperty
Source code excerpt:
{
bEnableSocialOverlay = false;
bEnableEditorOverlay = false;
}
}
// Turning on the social overlay requires the base overlay too
if (PropertyChangedEvent.Property->GetFName() == FName(TEXT("bEnableSocialOverlay")))
{
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/OnlineSubsystemEOS.cpp:212
Scope (from outer to inner):
file
function bool FOnlineSubsystemEOS::PlatformCreate
Source code excerpt:
}
#if WITH_EDITOR
if (GIsEditor && EOSSettings.bEnableEditorOverlay)
{
OverlayFlags |= EOS_PF_LOADING_IN_EDITOR;
}
#endif
// Don't allow the overlay to be used in the editor when running PIE.
const bool bEditorOverlayAllowed = EOSSettings.bEnableEditorOverlay && InstanceName == FOnlineSubsystemImpl::DefaultInstanceName;
const bool bOverlayAllowed = IsRunningGame() || bEditorOverlayAllowed;
PlatformOptions.Flags = bOverlayAllowed ? OverlayFlags : EOS_PF_DISABLE_OVERLAY;
// Make the cache directory be in the user's writable area
FString CacheDir;
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Public/EOSSettings.h:77
Scope: file
Source code excerpt:
bool bEnableOverlay;
bool bEnableSocialOverlay;
bool bEnableEditorOverlay;
bool bPreferPersistentAuth;
bool bUseEAS;
bool bUseEOSConnect;
bool bUseEOSSessions;
bool bMirrorStatsToEOS;
bool bMirrorAchievementsToEOS;
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Public/EOSSettings.h:127
Scope (from outer to inner):
file
class class UEOSSettings : public URuntimeOptionsBase
Source code excerpt:
/** Set to true to enable the overlay when running in the editor */
UPROPERTY(Config, EditAnywhere, BlueprintReadOnly, Category = "EOS Settings")
bool bEnableEditorOverlay = false;
/** Set to true to prefer persistent auth over external authentication during Login */
UPROPERTY(Config, EditAnywhere, BlueprintReadOnly, Category="EOS Settings")
bool bPreferPersistentAuth = false;
/** Tag combinations for paged queries in title file enumerations, separate tags within groups using `+` */