UPawnComponent

PawnComponent is an actor component made for [APawn](API\Runtime\Engine\GameFramework\APawn) and receives pawn events.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

ModularGameplay

Header

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

Include

#include "Components/PawnComponent.h"

Syntax

UCLASS()
class UPawnComponent : public UGameFrameworkComponent

Remarks

PawnComponent is an actor component made for APawn and receives pawn events.

Constructors

Name Description

Public function

UPawnComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

T *

 

GetController()

Gets the controller that owns the component, this will usually be null on clients

Public function Const

T *

 

GetPawn()

Gets the pawn that owns the component, this will always be valid during gameplay but can return null in the editor

Public function Const

T *

 

GetPawnChecked()

Public function Const

T *

 

GetPlayerState()

Pawn accessors, only valid if called during gameplay.