Navigation
API > API/Plugins > API/Plugins/ModularGameplay > API/Plugins/ModularGameplay/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UGameFrameworkComponent
- UPlayerStateComponent
References
| Module | ModularGameplay |
| Header | /Engine/Plugins/Experimental/ModularGameplay/Source/ModularGameplay/Public/Components/PlayerStateComponent.h |
| Include | #include "Components/PlayerStateComponent.h" |
Syntax
UCLASS&40;&41;
class UPlayerStateComponent : public UGameFrameworkComponent
Remarks
PlayerStateComponent is an actor component made for APlayerState and receives PlayerState events.
Constructors
| Type | Name | Description | |
|---|---|---|---|
UPlayerStateComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CopyProperties
(
UPlayerStateComponent* TargetPlayerStateComponent |
Copy properties which need to be saved in inactive PlayerState | |
| T * | GetPawn () |
PlayerState accessors, only valid if called during gameplay. | |
| T * | Gets the player state that owns the component, this will always be valid during gameplay but can return null in the editor | ||
| T * | |||
| void | Reset () |
PlayerState events. |