- Home /
carrying player data from one scene to the next
what i mean by the question, is that i have a game where you go from level to level, but i want the player to keep his/her weapons.
is there a way to save the player as a prefab, and when entering another scene, use the same prefab as before?
I don't know about the prefab , but you can save information about the player like , player health , ammo, lives , inventory , etc... really simple with PlayerPrefs class
http://docs.unity3d.com/Documentation/ScriptReference/PlayerPrefs.html
Answer by Graham-Dunnett · Jun 14, 2013 at 09:58 PM
Options include:
PlayerPrefs as @killan277 said.
GameObjects with dontdestroyonload
Class with static member variables.
Your answer
Follow this Question
Related Questions
Load and Save Scenes with PlayerPrefs.Set/GetInt 0 Answers
Player object carried from scene to scene 1 Answer
Change scenes from area? 1 Answer
Save/Load/New 1 Answer