Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ULocalPlayer
Description
Get a subsystem of the specificied type from the provided Player Controller's owning ULocalPlayer. Returns nullptr if the Subsystem cannot be found or the given controller or its local player are null.
| Name | GetSubsystemFromController |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/LocalPlayer.h |
| Include Path | #include "Engine/LocalPlayer.h" |
template<typename TSubsystemClass>
static TSubsystemClass * GetSubsystemFromController
(
const APlayerController * PC
)