AViewportWorldPlayerController
#include <ViewportWorlds/Public/Player/ViewportWorldPlayerController.h>class AViewportWorldPlayerControllerDefined in ViewportWorldPlayerController.h:16
Inherits:
APlayerController,IViewportWorldInterface
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class AViewportWorldPlayerController["AViewportWorldPlayerController"]
class APlayerController["APlayerController"]
APlayerController <|-- AViewportWorldPlayerController
class IViewportWorldInterface["IViewportWorldInterface"]
IViewportWorldInterface <|-- AViewportWorldPlayerController
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class AViewportWorldPlayerController {
+AViewportWorldPlayerController()
+SetupInputComponent() override
+UpdatePlayerInput(UInputMappingContext *NewInputMapping, cons bool
+InputMapping : TObjectPtr< UInputMappingContext >
+bApplyInputMappingImmediately : bool
}
A player controller class for the viewport world. This class extends APlayerController and implements IViewportWorldInterface. It is responsible for managing the input mapping context for the viewport world pawn.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
AViewportWorldPlayerController | ||
void | SetupInputComponent virtual override | |
bool | UpdatePlayerInput |
AViewportWorldPlayerController
Section titled “AViewportWorldPlayerController”AViewportWorldPlayerController()Defined in ViewportWorldPlayerController.h:40
Section titled “Defined in ViewportWorldPlayerController.h:40”SetupInputComponent
Section titled “SetupInputComponent”virtual override
virtual void SetupInputComponent() overrideDefined in ViewportWorldPlayerController.h:42
References
Section titled “References”UpdatePlayerInput
Section titled “UpdatePlayerInput”bool UpdatePlayerInput(UInputMappingContext * NewInputMapping, const bool bApplyImmediately = true)Defined in ViewportWorldPlayerController.h:45
Referenced by
Section titled “Referenced by”References
Section titled “References”Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
TObjectPtr< UInputMappingContext > | InputMapping | Store and manage the input mapping context for the viewport world pawn. The input mapping context defines the mapping between user input events and actions in the game. |
bool | bApplyInputMappingImmediately | Determines whether the input mapping should be applied immediately or not. |
InputMapping
Section titled “InputMapping”TObjectPtr< UInputMappingContext > InputMappingDefined in ViewportWorldPlayerController.h:27 Store and manage the input mapping context for the viewport world pawn. The input mapping context defines the mapping between user input events and actions in the game.
See also: UpdatePlayerInput()
Referenced by
Section titled “Referenced by”bApplyInputMappingImmediately
Section titled “bApplyInputMappingImmediately”bool bApplyInputMappingImmediatelyDefined in ViewportWorldPlayerController.h:36 Determines whether the input mapping should be applied immediately or not.
If set to true, the input mapping will be applied immediately after it is updated. If set to false, you will have to manually add it to the Enhanced Input Subsystem.