UGameInstance::GetOnlinePlatformName

Retrieves the name of the online subsystem for the platform used by this instance.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/GameInstance.h

Include

#include "Engine/GameInstance.h"

Source

/Engine/Source/Runtime/Engine/Private/GameInstance.cpp

Syntax

virtual FName GetOnlinePlatformName() const

Remarks

Retrieves the name of the online subsystem for the platform used by this instance. This will be used as the value of the PlayerOnlinePlatformName parameter in the NMT_Login message when this client connects to a server. Normally this will be the same as the DefaultPlatformService config value, but games may override it if they need non-default behavior (for example, if they are using multiple online subsystems at the same time).

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss