- Home /
Question by
Monzo · Jan 12, 2016 at 04:49 PM ·
prefabsavesaveloadpersistentdatapathsave scene
How i can save persistent data for each scene?
Hey, I can save my scene data for each scene. Example: I have 200 levels and each level have your score, stars...
I want to save so that on a menu I can call each of these prefs.
I haven't a script for this. Only the normal script for playerprefs and persistent data.
Comment
So... The problem actually lies with the way you present the data, not how to save it, right?
Answer by Kamil1064 · Mar 14, 2016 at 04:30 PM
Hi @Monzo, Following to that video just modify file path. In 46:43 there is ready script so just use simple int in lines 36, 48, 51 which will be different for each scene, for example:
public int SceneID; // indywidual ID for each scene
// in save/load function modify
(Application.perrsistentDataPath + "/nameOfFile_" + SceneID + ".dat", )
That's will give you as many save slots as many scenes you have.