Answer the question
In order to leave comments, you need to log in
How to implement data transfer between scenes in unity3d?
Hello everyone, tell me how to transfer information between scenes in Unity3d, and the game is over the network, i.e. for example, in the main menu you set the name of the player, his class, and in the second scene you get this data, and for a given player, there can be a lot of them.
I have only 1 option in my head, but it seems to me that it is not quite correct in this case. Save the data to the registry or to a file, and then open it in the second scene.
Answer the question
In order to leave comments, you need to log in
1. static variables
2. Singleton script that is not destroyed between scenes (use DontDestroyOnLoad for this) and stores all data
3. use PlayerPrefs of Unity itself
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question