[C++] Access variables in AGameMode

Hello,

The title is self-explanatory. How do I access variables that are declared in my AGameMode from other classes? In my case, I need to access them from my UActorComponent.

Thanks in advance! :slight_smile:

~Stefan

This should work https://answers.unrealengine.com/questions/25153/how-to-get-a-reference-to-my-gamemode-class-instan.html

Thanks, it did. :slight_smile: