Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/GameInstance.h |
Include |
#include "Engine/GameInstance.h" |
Source |
/Engine/Source/Runtime/Engine/Private/GameInstance.cpp |
APlayerController * GetPrimaryPlayerController
(
bool bRequiresValidUniqueId
) const
Get the primary player controller on this machine (others are splitscreen children) (must have valid player state)
the primary controller on this machine
Parameter |
Description |
---|---|
bRequiresValidUniqueId |
Whether the controller must also have a valid unique id (default true in order to maintain historical behaviour) |