UGameFrameworkComponent::GetGameInstance

Gets the game instance this component is a part of, this will return null if not called during normal gameplay

Choose your operating system:

Windows

macOS

Linux

References

Module

ModularGameplay

Header

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

Include

#include "Components/GameFrameworkComponent.h"

Syntax

template<class T>
T * GetGameInstance() const

Remarks

Gets the game instance this component is a part of, this will return null if not called during normal gameplay