B
B
bad22vk2020-11-14 09:53:14
Unity
bad22vk, 2020-11-14 09:53:14

How to save data between Unity2D scenes?

Comrades, friends, men.
Faced a problem : It is
necessary to save data, such as the number of coins, between scenes.
I know the PlayerPrefs tool, but I just can't figure out how to use it so that, for example, having collected 10 coins on a level, I could use them in the scene with the store?
Save me, who knows.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mopsicus, 2020-11-14
@bad22vk

There are 10 and 1 ways to do it . You need to learn C#, not just Unity. For example:
1. Static class
2. Non-destructible object
3. PlayerPrefs
4. Singleton
5. ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question