UGameInstance::OverrideGameModeClass

Syntax

virtual TSubclassOf < AGameModeBase > OverrideGameModeClass
(
    TSubclassOf < AGameModeBase > GameModeClass,
    const FString & MapName,
    const FString & Options,
    const FString & Portal
) const

Remarks

Return the game mode subclass to use for a given map, options, and portal. By default return passed in one

References

Module

Engine

Header

Runtime/Engine/Classes/Engine/GameInstance.h

Source

Runtime/Engine/Private/GameInstance.cpp