Player Prefs reset after crash?
On iOS and Android, player prefs are sometimes reset when our game crashes which results in players losing their progress. I'm not sure what is causing the crash as I haven't been able to reproduce it....
View ArticleI want to add player pref in my code to get current Player Health but i Don't...
i have 3 different script and now i am confused where to put player pref to get current . i want the same amount of health of player which is before i restart my game .... like if i played my game get...
View ArticleIssue with PlayerPrefs not loading a value, as well as a bug...
My game uses PlayerPrefs to save and load values for the last played Score and Highscore variables (both integers). Everything worked in this project when it was using OnGUI, but since then I've...
View Articlepause menu loads saved game quirky
can anyone see what is wrong with my Java script pause menu? When I have a saved game, then go to another level, bring up the pause menu and hit " load", it will take me to the correct level but the...
View Articlesaving texture change in PlayerPrefs
I have a script where I can toggle through textures but how do I save it to player prefs. the way the script is set up ( i think) is that when I press V I save the int of the texture that is displayed...
View ArticlePlayerPrefs is affecting all builds of my game
I have used playerprefs in my game and built it and they work fine. Unfortunately, when I make another build of the game, the playerprefs that were saved in my already existing build affected it so I...
View ArticleHighscore and PlayerPrefs unity C#
So I'm not new I but never really worked around scoring with highscores and player prefs. Here is my script and help is greatly appreciated. using UnityEngine; using System.Collections; using...
View Articlehow i save and load my coins look the script please
using UnityEngine; using System.Collections; using UnityEngine.UI; public class Coin : MonoBehaviour { public int coinValue; public Text scoreText; // Use this for initialization void Start () { } //...
View Articlehow can i save and load my coins look my script please!!
this is my script: using UnityEngine; using System.Collections; using UnityEngine.UI; public class Coin : MonoBehaviour { public int coinValue; public Text scoreText; // Use this for initialization...
View Articlestandard anti memory hack load save data using playerprefs
Hi all. I want to save my vital variables (gems,coins,level,xp , etc) into a file using playerprefs. My file has been encrypted.(AES) it is ok. I load my data in start only one time and initialize the...
View ArticleMy save data is being overwritten
Hello, world: I'm writing a very easy save function in Unity for an iOS game. Though it saves your progress as it goes, however, it deletes the data from all the previously saved levels. Can anyone...
View Articlecreate store database class for RTS games
my question is about make a true and best class to store data. (for example like clash of clans or royale or RTS games). We have many ways. Suppose we have several cards(units) that have special...
View ArticlePlayerPrefs arent loading properly.
Dear reader, i created a 2d application in unity(c#). I created a save and a load button using PlayerPrefs. On my PC these Button are working fine. If run it on my Lumia 950, save and then load it...
View ArticleArgument out of range
In my really simple simon says game, everything used to be working fine. The game would generate a pattern, and when the player got the pattern correct, the computer would give the same thing but add...
View Articlerandom question without repetition
hi i'm creating a word game.i have a list of questions which is divided into scenes. 1 question per scene. the objective of the game is once the question is answered it will never show again unless the...
View ArticleHow to access android sharedpreferences using unity c# ?
I am trying to access sharedpreferences of a game which is developed using android studio. Anyone has solution how to do it in c# ?
View ArticleHow to efficiently hand out rewards based on the level that the player...
I currently have 15 levels and counting in my game, and would like to make a simple formula that increases the reward by 10% by every level for example. My "win" screen is a separate scene which is...
View ArticleDecrease Lives on collision
I'm fairly new to Unity & C#, i've made a basic Flappy Bird type clone which runs perfect on WebGL, Windows & Android. I have decided to spruce it up a little and add in levels - after reaching...
View Articlehow to convert a dynamic playerpref to a dynamic int variable?
hi my question might be not very clear but by dynamic i mean a string name that changes according to the level we are in the game.Basically in my game i needed a method to check if a player have...
View ArticleWhy is my operation delete the playerPRefs?
Hey there! (Please see image first) ![alt text][1] I have this question. Why does M = S+C/2 delete my playerPrefs? While M = S+C is fine, Here's what I'm trying to do, I'm making a timer which ends...
View Article