UGameMapsSettings::GetGameModeForMapName

Searches the GameModeMapPrefixes list for a named game mode, if not found will return passed in string

Choose your operating system:

Windows

macOS

Linux

References

Module

EngineSettings

Header

/Engine/Source/Runtime/EngineSettings/Classes/GameMapsSettings.h

Include

#include "GameMapsSettings.h"

Source

/Engine/Source/Runtime/EngineSettings/Private/EngineSettingsModule.cpp

Syntax

static FString GetGameModeForMapName
(
    const FString & MapName
)

Remarks

Searches the GameModeMapPrefixes list for a named game mode, if not found will return passed in string

Returns

the proper game type class path to load, or empty if not found