From the symptoms and code snippet I’m guessing you are working on multiplayer game. Game mode exists only on server. If you want access it’s data on client you can either share it through player controller (client’s controller can send a request to server and receive data in response) or store data in class that exists on both client and server like GameState.