A
A
ase20152019-04-02 05:06:52
Unity
ase2015, 2019-04-02 05:06:52

How in Unity to make some object shown only 1 time?

For example, a player enters the game, and information about a recent update is shown there, he presses the close button and that's it, and continues to play the game, and the next time he enters the game it is no longer shown.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MishkaVNorky, 2019-04-02
@ase2015

For this, PlayerPref is used to save data locally to the registry (multi-platform).
PlayerPref Get - check the parameter whether the window was shown, if not, show it and then PlayerPref Set

S
stictt, 2019-04-02
@stictt

It is easy to do such things, for example, you can save the settings to a file, or your menu is represented by a game scene. where obviously there are variables, and this same variable can be assigned to the display flag. where when you start the game, you load the scene again

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question