AGameModeBase::SpawnPlayerControllerCommon

Does the work of spawning a player controller of the given class at the given transform.

Windows
MacOS
Linux

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 * SpawnPlayerControllerCommon
(
    ENetRole InRemoteRole,
    FVector const & SpawnLocation,
    FRotator const & SpawnRotation,
    TSubclassOf< APlayerController > InPlayerControllerClass
)

Remarks

Does the work of spawning a player controller of the given class at the given transform.

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