U
U
UMFUCHI2020-07-21 18:36:06
C++ / C#
UMFUCHI, 2020-07-21 18:36:06

Is it possible to do autosave in unity2D?

Is it possible to make autosave in unity2D, which is saved without buttons and loaded automatically when you enter the game, if yes, then how to do it? If it's not difficult, give the code please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zZaKko, 2020-07-21
@zZaKko

As one smart person on this forum said, "no one will write for you, because the code costs money." But the very essence is this: use InvokeReapeating to constantly call the autosave method with some pause (5, 10 minutes). And in this method, using PlayerPrefs, save all the data you need to the registry, and load them when you start the game.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question