I have built a game in Unity3D where the player can place models, rotate them and scale them.
Now what I want is to add an option to save the current state.
What I need is to save for every model is simply the scale, position, rotation and the model's mesh.
I know how to save all the properties except for the Mesh. I planned to save the data in JSON file but it can't save the Mesh nor the GameObject.
I have reference to all the instanced models so there is no need to find them.
Edit: To sum up, I am looking for a way to save the selected models so I would know which models to load when the user wants to load the file. But I can't serialize the GameObject nor the mesh, and therefore using JSON or binary file doesn't work. All I have been able to save so far is the position, rotation and scale of each models.
How can I save the selected models¿