Navigation
API > API/Plugins > API/Plugins/ModularGameplay > API/Plugins/ModularGameplay/Components > API/Plugins/ModularGameplay/Components/UGameStateComponent
References
| Module | ModularGameplay |
| Header | /Engine/Plugins/Experimental/ModularGameplay/Source/ModularGameplay/Public/Components/GameStateComponent.h |
| Include | #include "Components/GameStateComponent.h" |
template<class T>
T &42; GetGameState&40;&41; const
Remarks
Gets the game state that owns the component, this will always be valid during gameplay but can return null in the editor