Navigation
API > API/Runtime > API/Runtime/Engine
ULocalPlayerSubsystem Base class for auto instanced and initialized subsystem that share the lifetime of local players
| Name | ULocalPlayerSubsystem |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Subsystems/LocalPlayerSubsystem.h |
| Include Path | #include "Subsystems/LocalPlayerSubsystem.h" |
Syntax
UCLASS (Abstract, Within=LocalPlayer, MinimalAPI)
class ULocalPlayerSubsystem : public USubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → ULocalPlayerSubsystem
Derived Classes
ULocalPlayerSubsystem derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULocalPlayerSubsystem() |
Subsystems/LocalPlayerSubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
LocalPlayerType * GetLocalPlayer() |
Subsystems/LocalPlayerSubsystem.h | ||
LocalPlayerType * GetLocalPlayerChecked() |
Subsystems/LocalPlayerSubsystem.h | ||
virtual void PlayerControllerChanged
(
APlayerController* NewPlayerController |
Callback for when the player controller is changed on this subsystem's owning local player | Subsystems/LocalPlayerSubsystem.h |