- Home /
Question by
kevinrocks_786 · Mar 07, 2016 at 03:29 AM ·
c#unity 5savingsaveloadpersistence
How to save custom data types
So I know how to use PlayerPrefs, but that is only built in data types.How do I save the data of an object thats of type of a custom class (each variable has many variables inside of it).
For example, saving an entire transform. Save its position, rotation, current material, scripts attached to it. And what not.
Comment
Answer by Theinsanekiller · Mar 07, 2016 at 04:57 AM
There are multiple ways to achieve this, But the following tutorial will get you started http://gamedevelopment.tutsplus.com/tutorials/how-to-save-and-load-your-players-progress-in-unity--cms-20934