I Have 2 scripts. In one, you have a function where you can sign in. It needs a username and I want that username on a TMP Text that is located on the main menu scene.
public string Username;
It IS a public string. Other script:
public TextMeshProUGUI playerName;
And that is the TMP Text on which the player's username should be displayed.
I know how I could pass variables between scripts, but I don't know how to pass them through whole scenes.
Kinda rushed sorry.