Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/APlayerController
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
| Include | #include "GameFramework/PlayerController.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PlayerController.cpp |
APawn &42; GetPawnOrSpectator&40;&41; const
Remarks
Returns the first of GetPawn() or GetSpectatorPawn() that is not nullptr, or nullptr otherwise.