UControllerComponent

ControllerComponent is an actor component made for [AController](API\Runtime\Engine\GameFramework\AController) and receives controller events.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

ModularGameplay

Header

/Engine/Plugins/Experimental/ModularGameplay/Source/ModularGameplay/Public/Components/ControllerComponent.h

Include

#include "Components/ControllerComponent.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UControllerComponent : public UGameFrameworkComponent

Remarks

ControllerComponent is an actor component made for AController and receives controller events.

Constructors

Name Description

Public function

UControllerComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

T *

 

GetController()

Public function Const

T *

 

GetControllerChecked()

Public function Const

T *

 

GetGameInstance()

Public function Const

T *

 

GetPawn()

Controller accessors Usable for any type of AController owner

Public function Const

T *

 

GetPawnOrViewTarget()

Public function Const

T *

 

GetPlayer()

PlayerController accessors Only returns correct values for APlayerController owners

Public function Const

T *

 

GetPlayerState()

Public function Const

void

 

GetPlayerViewPoint

(
    FVector& Location,
    FRotator& Rotation
)

Public function Const

T *

 

GetViewTarget()

Public function Const

bool

 

IsLocalController()

Public function Virtual

void

 

PlayerTick

(
    float DeltaTime
)

PlayerTick is only called if the PlayerController has a PlayerInput object.

Public function Virtual

void

 

ReceivedPlayer()

PlayerController events These only happen if the controller is a PlayerControllerCalled after the PlayerController's viewport/net connection is associated with this player controller.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss