- Home /
How can playerprefs save my tower model and its position?
Hi all, i'm trying to make game in android devices, and i want the game can save when quit the application and load again when we want to play it.
My game is tower defense, so we must build tower.
What i want to ask, how can i use playerprefs to save the tower model that i already build and its position?
I only can save and load my gold with playerprefs, but when load the game, the tower that i already build lost and i must build it again, i don't understand how to save my tower model and its position after i build it.
Can anyone help me here?
Thanks
Do you need to save the actual tower model, or is that a prefab? If you just need to save the tower's position and type, then that will be easy to do with PlayerPrefs. Try to explain why you need to do this for better answers.
Answer by quantum_rez · Dec 10, 2012 at 04:02 PM
I need to save the the prefab of the tower I've built. So when I load the scene again, the tower will still be there with its information, such as level, damage, etc.
Your answer
Follow this Question
Related Questions
player prefs, problem but no problem??? 1 Answer
Saving and Loading data in one scene 1 Answer
playerprefs problem 0 Answers
PlayerPrefs for FPS? 1 Answer
Character Positions Not Serializing or Loading Properly? 1 Answer