Try to show a string on textfield
Hi guys , im trying to make a leaderboard for my multiplayer game but havent success yet. I have a scene number one where the user writes their name on a textfield and i put it on a string when he clicks the start button. In the scene number 2 (the game scene) i call the string that contains the user name and put it on a new string in new scene, i think that work preety good. Then I’ve added the GameObject with the name to a List to work it to start to order my leaderboard. I was watching the players inspector , and only the localplayer names is right , the other players (clones) have no name there, and that makes sense , because the local list only refresh the local and sychronized variables i think. So far so good The problem appears after compiling the game, once I run the compiled version, the name who gets passed through the rooms via a persistent object, does not get displayed. So, when the game is ran through Unity everything works fine, but not in the compiled version.
it seems like the object that carries the string through the scenes is not working properly in the compiled version..
Your answer
![](https://koobas.hobune.stream/wayback/20220612090652im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
change scene in network lobby manager 1 Answer
Android wifi multiplayer game UI buttons! 0 Answers
Multi-platform multiplayer 0 Answers