Navigation
API > API/Plugins > API/Plugins/ModularGameplay > API/Plugins/ModularGameplay/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UGameFrameworkComponent
- UControllerComponent
References
| Module | ModularGameplay |
| Header | /Engine/Plugins/Experimental/ModularGameplay/Source/ModularGameplay/Public/Components/ControllerComponent.h |
| Include | #include "Components/ControllerComponent.h" |
Syntax
UCLASS&40;&41;
class UControllerComponent : public UGameFrameworkComponent
Remarks
ControllerComponent is an actor component made for AController and receives controller events.
Constructors
| Type | Name | Description | |
|---|---|---|---|
UControllerComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| T * | Gets the controller that owns the component, this will always be valid during gameplay but can return null in the editor | ||
| T * | |||
| T * | GetPawn () |
Controller accessors Usable for any type of AController owner, only valid if called during gameplayReturns the pawn that is currently possessed by the owning controller, will often return null | |
| T * | If this controller is possessing a pawn return the pawn, if not return the view target | ||
| T * | GetPlayer () |
PlayerController accessors Only returns correct values for APlayerController owners | |
| T * | Returns the player state attached to this controller if there is one | ||
| void | GetPlayerViewPoint
(
FVector& Location, |
Returns the point of view for either a player or controlled pawn | |
| T * | Returns the actor that is serving as the current view target for the owning controller | ||
| bool | Returns true if the owning controller is considered to be local | ||
| void | PlayerTick
(
float DeltaTime |
PlayerTick is only called if the PlayerController has a PlayerInput object. | |
| void | PlayerController events These only happen if the controller is a PlayerControllerCalled after the PlayerController's viewport/net connection is associated with this player controller. |