- Home /
Saving game objects
Hello.
I build a level builder for my game. I'm creating my entire levels with it. My problem is I cant export the level I created to the game. I have 2 arrays, one store game objects and other store its transform. So I'm instatiating the new level with,
Instantiate(savedobjects[i],savedcoords[i],Quaternion.identity);
This works fine in my builder but I these arrays in my game. The question is. How can I save the savedobjects array ( it is a game object array ). PlayerPref and PlayerPreftX dont let me save the game objects.
Thanks for asnwers
how about writing the data you want to a text file, and then reading this in your game? it should be a breeze :) i do the same with saving and loading scenes in my app, i save gameobject name, position and rotation (some other extra stuff i need too, like joints info) and then load the gameobjects from files, if they're already loaded i just instantiate them :)
Your answer

Follow this Question
Related Questions
UnitySerializer Only Saving one Game Problem 0 Answers
Save unity game play state 1 Answer
Mass Saving/Loading 0 Answers
Game Inside Game 0 Answers
how to make friend list with SQL save? 0 Answers