APlayerController
- Module
- Game
- Header
#include "Game/APlayerController.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Constructors
| Signature | Name | Description |
|---|---|---|
APlayerController() | APlayerController | |
~APlayerController() override | ~APlayerController |
Public functions
| Returns | Name | Description |
|---|---|---|
void | Possess | |
void | UnPossess | |
void | Tick | Evaluates input bindings before components tick. |
MPlayerInput* | GetPlayerInput | |
MEnhancedInputSubsystem* | GetEnhancedInput | Per-player Enhanced Input subsystem — gameplay adds/removes InputMappingContext assets through this. |
void | SetInputSystem | The input instance this controller evaluates against: the global one by default, a split-screen player's own one after FLocalPlayerManager::BindController. |
InputActionSystem& | GetInputSystem | |
void | PushInputContext | Input contexts Push/pop named InputActionSystem contexts (priority = stack order; a context with ConsumesInput blocks lower ones). |
void | PopInputContext | |
bool | SetViewTargetWithBlend | UE's controller-side spelling of the same CameraSystem handover MCameraStatics exposes; there is one view per process, so it does not matter which controller asks. |
void | EndPlay |
Function details
APlayerController
APlayerController()~APlayerController
~APlayerController() overridePossess
void Possess(APawn* pawn) overrideUnPossess
void UnPossess() overrideTick
void Tick(float deltaSeconds) overrideEvaluates input bindings before components tick.
GetPlayerInput
MPlayerInput* GetPlayerInput() constGetEnhancedInput
MEnhancedInputSubsystem* GetEnhancedInput() constPer-player Enhanced Input subsystem — gameplay adds/removes InputMappingContext assets through this. UE5's EnhancedInputLocalPlayerSubsystem analog.
SetInputSystem
void SetInputSystem(InputActionSystem* actions)The input instance this controller evaluates against: the global one by default, a split-screen player's own one after FLocalPlayerManager::BindController. Moves the pushed contexts and the enhanced-input contexts over.
GetInputSystem
InputActionSystem& GetInputSystem() constPushInputContext
void PushInputContext(const std::string& name)Input contexts Push/pop named InputActionSystem contexts (priority = stack order; a context with ConsumesInput blocks lower ones). The controller tracks what it pushed and pops everything on EndPlay — gameplay can't leak a "Menu" context past its controller.
PopInputContext
void PopInputContext(const std::string& name)SetViewTargetWithBlend
bool SetViewTargetWithBlend(AActor* target, float blendTimeSeconds)UE's controller-side spelling of the same CameraSystem handover MCameraStatics exposes; there is one view per process, so it does not matter which controller asks.
EndPlay
void EndPlay() override