Answer the question
In order to leave comments, you need to log in
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
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
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 questionAsk a Question
731 491 924 answers to any question