0
\$\begingroup\$

As the title suggests, I am currently stuck trying to program a way to load some game mode preferences (ie. what type of game mode/players on each team/ etc...) from a player lobby scene to the actual gameplay scene.

Currently, I have taken the approach of creating a DontDestroyOnLoad prefab that successfully passes the preferences over; however, when mixed with the Photon Networking API, this becomes very annoying as the Prefab becomes unsynced, resulting in players connecting into the game not spawning into there correct positions and teams reading empty, etc...

Is there a more proper and reliable way to approach transferring player game mode data from the lobby scene to the gameplay scene? I've heard that PlayerPrefs could work but am unsure whether or not they should be used when networking is involved.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.