AViewportWorldCharacter
#include <ViewportWorlds/Public/Player/ViewportWorldCharacter.h>class AViewportWorldCharacterDefined in ViewportWorldCharacter.h:14
Inherits:
ACharacter,IViewportWorldInterface
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class AViewportWorldCharacter["AViewportWorldCharacter"]
class ACharacter["ACharacter"]
ACharacter <|-- AViewportWorldCharacter
class IViewportWorldInterface["IViewportWorldInterface"]
IViewportWorldInterface <|-- AViewportWorldCharacter
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class AViewportWorldCharacter {
+AViewportWorldCharacter()
+SetupPlayerInputComponent(class UInputComponent *PlayerInputComponent
+UpdatePlayerInput(UInputMappingContext *NewInputMapping, cons bool
+InputMapping : TObjectPtr< UInputMappingContext >
+bApplyInputMappingImmediately : bool
}
A character class representing a character in the viewport world.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
AViewportWorldCharacter | ||
void | SetupPlayerInputComponent virtual override | |
bool | UpdatePlayerInput | Updates the player input for the character. |
AViewportWorldCharacter
Section titled “AViewportWorldCharacter”AViewportWorldCharacter()Defined in ViewportWorldCharacter.h:41
Section titled “Defined in ViewportWorldCharacter.h:41”SetupPlayerInputComponent
Section titled “SetupPlayerInputComponent”virtual override
virtual void SetupPlayerInputComponent(class UInputComponent * PlayerInputComponent) overrideDefined in ViewportWorldCharacter.h:43
References
Section titled “References”UpdatePlayerInput
Section titled “UpdatePlayerInput”bool UpdatePlayerInput(UInputMappingContext * NewInputMapping, const bool bApplyImmediately = true)Defined in ViewportWorldCharacter.h:55 Updates the player input for the character.
This method updates the player input for the character using the provided input mapping context.
Parameters
Section titled “Parameters”-
NewInputMappingThe input mapping context to be applied. -
bApplyImmediatelyWhether to apply the mapping context immediately or not. Default value is true.
Returns
Section titled “Returns”Returns true if the player input was updated successfully, false otherwise.
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 | Indicates whether to apply the input mapping immediately or not. |
InputMapping
Section titled “InputMapping”TObjectPtr< UInputMappingContext > InputMappingDefined in ViewportWorldCharacter.h:25 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 ViewportWorldCharacter.h:37 Indicates whether to apply the input mapping immediately or not.
This variable determines whether the input mapping should be applied immediately when updating the player input for the character or not. If set to true, the input mapping will be applied immediately. If set to false, you will have to manually apply to the Enhanced Input Subsystem.
See also: AViewportWorldCharacter::UpdatePlayerInput()