bEnableSocialOverlay
bEnableSocialOverlay
#Overview
name: bEnableSocialOverlay
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 bEnableSocialOverlay is to control the activation of the social overlay feature in the Epic Online Services (EOS) integration for Unreal Engine.
This setting variable is primarily used by the OnlineSubsystemEOS plugin, which is part of the online subsystem framework in Unreal Engine. It specifically relates to the EOS overlay functionality, which provides social features like friends lists and invitations.
The value of this variable is set in several ways:
- It is initialized to false in the FEOSSettings constructor.
- It can be loaded from the game’s configuration file (typically DefaultEngine.ini) using GConfig->GetBool().
- It can be modified through the Unreal Engine editor interface, as it’s exposed as an editable property.
This variable interacts closely with bEnableOverlay. Enabling bEnableSocialOverlay automatically enables bEnableOverlay, as the social overlay requires the base overlay to function.
Developers should be aware of the following:
- Enabling this variable will activate the EOS social overlay, which may affect the user interface and experience of the game.
- This setting is part of a larger EOS configuration and should be considered alongside other EOS settings.
- Changes to this variable in the editor will trigger related changes (e.g., enabling bEnableOverlay if bEnableSocialOverlay is set to true).
Best practices when using this variable include:
- Ensure that the use of the social overlay aligns with the game’s design and user experience goals.
- Consider the implications on different platforms, as overlay behavior may vary.
- Test thoroughly with this setting both enabled and disabled to ensure proper functionality in all scenarios.
- Coordinate the use of this setting with other EOS configuration options for a cohesive online experience.
#Setting Variables
#References In INI files
Location: <Workspace>/Projects/Lyra/Config/Custom/EOS/DefaultEngine.ini:23, section: [/Script/OnlineSubsystemEOS.EOSSettings]
- INI Section:
/Script/OnlineSubsystemEOS.EOSSettings
- Raw value:
True
- Is Array:
False
Location: <Workspace>/Projects/Lyra/Config/Custom/SteamEOS/DefaultEngine.ini:28, 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:135
Scope (from outer to inner):
file
function FEOSSettings::FEOSSettings
Source code excerpt:
, TitleStorageReadChunkLength(0)
, bEnableOverlay(false)
, bEnableSocialOverlay(false)
, bEnableEditorOverlay(false)
, bPreferPersistentAuth(false)
, bUseEAS(false)
, bUseEOSConnect(false)
, bUseEOSSessions(false)
, bMirrorStatsToEOS(false)
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/EOSSettings.cpp:184
Scope (from outer to inner):
file
function const FEOSSettings& UEOSSettings::ManualGetSettings
Source code excerpt:
GConfig->GetInt(INI_SECTION, TEXT("TitleStorageReadChunkLength"), CachedSettings->TitleStorageReadChunkLength, GEngineIni);
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);
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/EOSSettings.cpp:216
Scope (from outer to inner):
file
function FEOSSettings UEOSSettings::ToNative
Source code excerpt:
Native.TitleStorageReadChunkLength = TitleStorageReadChunkLength;
Native.bEnableOverlay = bEnableOverlay;
Native.bEnableSocialOverlay = bEnableSocialOverlay;
Native.bEnableEditorOverlay = bEnableEditorOverlay;
Native.bPreferPersistentAuth = bPreferPersistentAuth;
Native.bUseEAS = bUseEAS;
Native.bUseEOSConnect = bUseEOSConnect;
Native.bUseEOSSessions = bUseEOSSessions;
Native.bMirrorStatsToEOS = bMirrorStatsToEOS;
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/EOSSettings.cpp:348
Scope (from outer to inner):
file
function void UEOSSettings::PostEditChangeProperty
Source code excerpt:
if (!bEnableOverlay)
{
bEnableSocialOverlay = false;
bEnableEditorOverlay = false;
}
}
// Turning on the social overlay requires the base overlay too
if (PropertyChangedEvent.Property->GetFName() == FName(TEXT("bEnableSocialOverlay")))
{
if (bEnableSocialOverlay)
{
bEnableOverlay = true;
}
}
if (PropertyChangedEvent.MemberProperty != nullptr &&
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/OnlineSubsystemEOS.cpp:207
Scope (from outer to inner):
file
function bool FOnlineSubsystemEOS::PlatformCreate
Source code excerpt:
OverlayFlags |= EOS_PF_DISABLE_OVERLAY;
}
if (!EOSSettings.bEnableSocialOverlay)
{
OverlayFlags |= EOS_PF_DISABLE_SOCIAL_OVERLAY;
}
#if WITH_EDITOR
if (GIsEditor && EOSSettings.bEnableEditorOverlay)
{
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Public/EOSSettings.h:76
Scope: file
Source code excerpt:
int32 TitleStorageReadChunkLength;
bool bEnableOverlay;
bool bEnableSocialOverlay;
bool bEnableEditorOverlay;
bool bPreferPersistentAuth;
bool bUseEAS;
bool bUseEOSConnect;
bool bUseEOSSessions;
bool bMirrorStatsToEOS;
#Loc: <Workspace>/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Public/EOSSettings.h:123
Scope (from outer to inner):
file
class class UEOSSettings : public URuntimeOptionsBase
Source code excerpt:
/** Set to true to enable the social overlay (friends, invites, etc.) */
UPROPERTY(Config, EditAnywhere, BlueprintReadOnly, Category="EOS Settings")
bool bEnableSocialOverlay = false;
/** 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 */