- Home /
Saving & Loading the scene (or at least one array) via Javascript
Hey everyone, I'm working on a simple minecraft-reminiscent Sandbox game. As we all know, a key part of these games is the player being able to edit the world around them. This requires being able to save the scene, which I'm currently having trouble with. All I really need is to be able to save & load 1 array, and i can easily make it work from there.
The real issue is that I've done my entire project up to this point in Javascript, and all the resources on here regarding saving are in regards to c#, which i haven't touched in years. So if there is any way to save & load via Javascript, I'd greatly appreciate someone sharing it.
Answer by tormentoarmagedoom · Aug 29, 2018 at 10:15 AM
Good day.
You should look for the info in tutorials, and manuals. It's very easy to find...
https://unity3d.com/es/learn/tutorials/topics/scripting/persistence-saving-and-loading-data
https://docs.unity3d.com/ScriptReference/PlayerPrefs.html
Bye
Thank you for your response, however I already found those resources and couldn't use them because both of those resources are for c# which, as I said, I haven't touched in years. Could you possibly show me how to use them in my Javascript-made game?
Your answer
Follow this Question
Related Questions
Problems with Playerprefs script 1 Answer
Saving and Loading Data 2 Answers
Save Player Health and stats 1 Answer
playerprefs multiple save slots 2 Answers
Whats the best way to save an enum state from scene to scene??? 1 Answer