Quantcast
Channel: Questions in topic: "playerprefs"
Browsing all 1333 articles
Browse latest View live

How can I continue the game without losing values after Game Over?

Hello How can I continue the game without losing values after Game Over? Let's say Game Over happened and my Player object disappeared from the scene and the player will be able to continue the game by...

View Article


How to load list after removals?

Hello, I have a script that saves & loads a list of strings with playerprefs, but if elements is removed from the list & I press a button to save the new list, & I reload the scene again it...

View Article


Playerprefs When the value I set is zero, there is a 2x increase in the part...

Hello! With Playerprefs, I save the gold and score in the game scene and upload them to the Menu scene, and when Game Over, the Game Over panel opens and the total gold of the current game is...

View Article

Do PlayerPrefs not save when updating game?

Im new to game dev and just released my first game on itch.io that is still in development. Everything is going well except I realized that when I post an update to the game, It resets all PlayerPrefs....

View Article

Can the hash suffix of PlayerPrefs ("_hXXXXXXXX") be disabled?

Hello, we are using PlayerPrefs to store some information, that is supposed to be read by another program. We only give simple names as keys like "TestString", but in the registry it becomes...

View Article


Coin System with PlayerPrefs

I was working on a basic coins system you collect coins in the game scene and you can see them on the top of the screen and when you die the amount of coins you collect will show up in the GameOver...

View Article

Saving character selection

How can I save my character selection? I write these lines but when I reopen the game or reload the scene I lost my selection and selectedCharacter equals 0. For example if I choose second character,...

View Article

Variable won't save when exiting the game and will not increment.

I have a variable **gem_number** with gets from another script (also the game object is in a different scene) a number. I am trying to add the number to **trueGems** variable, display it on the screen...

View Article


,PlayerPrefs stuck on event delegate

Hi! I created a .NET DLL using MonoBehaviour (Rider's default schema). When I try to use an event/delegate, PlayerPrefs crashes code execution. I can't do this or am I doing something wrong?...

View Article


Level Unlock System....frustrated,Building a level unlock system using player...

Hi everyone, Currently having a very frustrating time trying to get my level unlock system to work. The scoring premise of my game is very simple. It is a gem match game and if you receive a certain...

View Article

How to change materials of the player prefab from the character selection scene?

Hi i am new to unity and stuck in this process all i want to do i make a button on the character selection screen on every Player model prefab (with different materials on them there face,pants etc)...

View Article

Playerprefs don't reset after reinstalling the build on my phone.

Hello, I have arranged a PlayerPrefs value 'isOnboardingComplete' to avoid restarting an onboarding tutorial, after the user plays the first game session. But after uninstalling the app on my android...

View Article

Updating ui not working in fixed update .But it works in update

StoreCurency.text = PlayerPrefs.GetInt(GameStrings.curency, 0).ToString(); these lines of code is working fine in an update method. But when I put the same line in fixed update with nothing else is...

View Article


Text MeshPro Input field insert integer?

I have a TextMeshPro Input field added to my scene. I set it's preferences so that you can only insert integer values. Now I want to change the text of the field to an integer that is stored in...

View Article

do playerprefs work with webgl app?

I have never made a WebGL game so i need to know how to store data between session i do know player prefs store game data on user's device so i just wanted to know if same could be used for a WebGL...

View Article


How to create a main menu with singleton pattern?

Hello everyone, I am new both to this forum and Unity, so please bare with me, my understanding of this might not be the best. I am using a game manager to manage my game data (lives, score, position...

View Article

PlayerPrefs. Load Selected Character from previous scene

Hi, so I've encountered a problem with my character selection. **To explain what I want to add:** In main menu you can choose the character you want to play with. You click select. Then you can start...

View Article


Where is playerprefs located in IOS?

On an IOS device where are player prefs kept? The documentation at [link text][1] doesn't say. [1]: https://docs.unity3d.com/2021.2/Documentation/ScriptReference/PlayerPrefs.html

View Article

Why does my level progress reset after clicking the level menu button but...

I have a game with unlockable levels, and at lets say Level 3, when i win level 2, the level 3 button is unlocked. But when i go to main menu from pausing Level 3, all the buttons reset. Here is the...

View Article

PlayerPrefs loading data inconsistently

I've looked at a lot of forums regarding PlayerPrefs but nothing about inconsistent data loading. I've used a tutorial to store the transform and rotation of the player upon a save, and to load them...

View Article
Browsing all 1333 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>