It was good info.
There is new problem for myself that When I have to use it other than Actor, such as Actor Component, is it even possible?
I start to run out of ideas how to do it…
It was good info.
There is new problem for myself that When I have to use it other than Actor, such as Actor Component, is it even possible?
I start to run out of ideas how to do it…
This should work anywhere that GEngine exists, should work from the component
GEngine->GetWorld()->GetGameInstance();
nb. This answer is the first hit on google when you search for “ue4 getgameinstance outside actor”
OMG how silly of me. I didn’t know how to google with proper key word. Thank you so much. You saved my poor soul T.T
UGameplayStatics::GetGameInstance(this);
^ Also works in BP.