rotkip
❔ MissingReferenceException: ... in Unity
I'm pretty new to Unity and C#, so the instance gets destroyed when I switch scenes? Should I just make 2 scenes or 2 Highscore game objects, 1 in Game and 1 in Leaderboard? I did this and I noticed that I never let the player set a username and that's why the score wasn't uploaded properly, but I can't find any documentation that I understand on how to share the data of variables over scenes. Because I need to send the username data from the menu scene to the game scene, do you have an idea on how to do this?
30 replies