UGameInstance::GetPrimaryPlayerController

Syntax

APlayerController * GetPrimaryPlayerController() const

Remarks

Get the primary player controller on this machine (others are splitscreen children) (must have valid player state and unique id)

Returns

the primary controller on this machine

References

Module

Engine

Header

Runtime/Engine/Classes/Engine/GameInstance.h

Source

Runtime/Engine/Private/GameInstance.cpp