M
M
MadDog13372021-07-24 12:59:42
Unity
MadDog1337, 2021-07-24 12:59:42

unity. How to save the scene the player is in?

(game on the android platform) When you start the game, we get to the main scene in the menu, then we go through the levels, and when you exit the game, it starts again from the menu scene. The task is to make the player stay on the same stage where he finished playing.
I tried to save the scene through the playerprefs component (I gave the scene a name and saved it as int, I watched one guy's video. But he had a much easier toy, maybe that didn't work out) I also read the documentation that you can save through the cache. But I think it's quite difficult for a simple mobile phone.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2021-07-25
@GavriKos

Well, why don't you want to use PlayerPrefs? They are just created in order to save information between game launches.

N
Nik Titor, 2021-07-27
@nikerAI

1) https://www.youtube.com/watch?v=qsQC1WzfZDE
2) English YouTube to help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question