AGameModeBase::SpawnPlayerController

Windows
MacOS
Linux

Deprecated

  • SpawnPlayerController with Location and Rotation is deprecated, call or override the version that takes an Option string instead

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h

Include

#include "GameFramework/GameModeBase.h"

Source

/Engine/Source/Runtime/Engine/Private/GameModeBase.cpp

Syntax

virtual APlayerController * SpawnPlayerController
(
    ENetRole InRemoteRole,
    FVector const & SpawnLocation,
    FRotator const & SpawnRotation
)

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