Run copies of building in same computer cannot be recognized as different player

Options
Hey all, I made a build and run copies to test. But they all be taken as the same player and cannot find each other in network. I used something similar with PlayerNameInputField in the tutor. And if I change the name in one copy, a new opened copy will use the same player name...
Anyone can give bit tips?
Thanks a lot.

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @JUUEN,

    This is probably because if you kept same logic from the demo, the value will be saved in PlayerPrefs and will be loaded by all Unity instances.

    If you need this for development purposes you can:

    - add append a random number after the loaded value from PlayerPrefs (or the input text)
    - append count of running processes with the same name as current at the moment of loading the PlayerPrefs