Navigation
API > API/Plugins > API/Plugins/ModularGameplay > API/Plugins/ModularGameplay/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UGameFrameworkComponent
- UGameStateComponent
References
| Module | ModularGameplay |
| Header | /Engine/Plugins/Experimental/ModularGameplay/Source/ModularGameplay/Public/Components/GameStateComponent.h |
| Include | #include "Components/GameStateComponent.h" |
Syntax
UCLASS&40;&41;
class UGameStateComponent : public UGameFrameworkComponent
Remarks
GameStateComponent is an actor component made for AGameStateBase and receives GameState events.
Constructors
| Type | Name | Description | |
|---|---|---|---|
UGameStateComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| T * | GetGameMode () |
GameState accessors, only valid if called during gameplay. | |
| T * | GetGameState () |
Gets the game state that owns the component, this will always be valid during gameplay but can return null in the editor | |
| T * | |||
| void | Called when gameplay has fully ended | ||
| void | GameState events. |