Navigation
API > API/Plugins > API/Plugins/ModularGameplay > API/Plugins/ModularGameplay/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UGameFrameworkComponent
- UPawnComponent
References
| Module | ModularGameplay |
| Header | /Engine/Plugins/Experimental/ModularGameplay/Source/ModularGameplay/Public/Components/PawnComponent.h |
| Include | #include "Components/PawnComponent.h" |
Syntax
UCLASS&40;&41;
class UPawnComponent : public UGameFrameworkComponent
Remarks
PawnComponent is an actor component made for APawn and receives pawn events.
Constructors
| Type | Name | Description | |
|---|---|---|---|
UPawnComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| T * | Gets the controller that owns the component, this will usually be null on clients | ||
| T * | GetPawn () |
Gets the pawn that owns the component, this will always be valid during gameplay but can return null in the editor | |
| T * | |||
| T * | Pawn accessors, only valid if called during gameplay. |