How to tranfer a variable to another level?

I created a main menu level in which you can host and join a game. Furthermore you can set your name with a text box.

When the text is comitted it sets a variable in the widget, which is displayed in the “main menu” level.

If I host or join a game, a new level gets loaded. But it is not possible to acces the name variable, because the “main menu” doesn’t exist anymore.

Only the level, which gets loaded has a game mode.

How can I handle this?

Thanks for taking time!

Try using the game instance/game mode to store persistent variables, or in multiplayer I believe player state is persistent as well. See video #20 for an explanation with the game instance.

Thank you for your help. I look up the video and try to make everything work.