Help With Quickest TimeScore
**I'm trying to save the time in which it took to complete the level and then after that if the beat there time i want it to save that too, i have tried using player prefs but i just carnt figure it...
View Articlehaving difficulties accessing a non static variables value to save and load.
void Start() { GameObject idlescriptgoeshere = GameObject.Find ("powercost"); TapPowerUpgradeManager tapPowerUpgradeManager = TAPPOWERManagerGOEShere.GetComponent (); TapPowerUpgradeManager.cost +=...
View ArticlePlayerPrefsX delete all values?
I need the equivalent to PlayerPrefs.DeleteAll() but PlayerPrefsX doesn't have it! What's the correct way to delete all values stored with PlayerPrefsX?
View ArticleUI Slider, Save Values and Change Them
I have a UI slider which opens up when a user taps on a flag of Asia on a map. The slider has a min value of 0 and max of 500, value set at 500 and the direction is Left to Right. Beside the slider I...
View ArticlePlayerPrefs does not work? nothing saved. Unity 5
Hello. I am new with PlayerPrefs i dont know anything i read everything and watched all videos almost i still dont understand its very confusing + its in java almost everything and i am working in c#...
View ArticlePlayerPrefs Float in LoadLevel does not work?
Hello. I want to create my website game savable but when i tried and do that it give me a error that loadlevel cannot convert float to int? and i cannot convert my float values to int because they must...
View ArticleHighscore PlayerPrefs not working on iOS
I am having a problem with the playerprefs i setup for my score/highscore system. Currently, the problem is that (on iOS) when the player dies, the highscore does not show. This problem does not occur...
View ArticleDoes saving byte stream to PlayerPrefs need Base64 conversion?
After seeing the GetBytes and GetString methods of Encoding class, I was confused why always byte stream is converted as a base64 string and saved to Player prefs in many implementations. I see those...
View ArticleSpawning a player when loading new level
A question about appropriate workflow. I'm creating a game with multiple levels. Should I manually add the player prefab and camera to each scene and make sure the settings are the same, or should I...
View ArticleCompletely Black Material - Player Prefs
Hey there! So recently I've been trying to throw together a car customization script, but I've run into a road block. I tried to save the material using an playerpref int, checking the int's value and...
View ArticleHow to save dictionary keycode values to PlayerPrefs with C#
Hi. I have a dictionary that holds < string, KeyCode > value pairs, but I need to save the keycode values to PlayerPrefs. From what I understand I need to convert the KeyCodes to an int or a...
View ArticleSave Values On Closing of Game
I have a simple scene set up that the player walks around and collects coins. Im using player prefs setInt to store the value of CoinsCollected and then player prefs getInt to get that saved value so...
View ArticlePlayerPref set int and get int
Sorry to have to ask, but im relitively new to unity and, though I have done a lot of research, I simply can't seem to find what im doing wrong here, each time I play the game or reset the level, the...
View ArticleAdding Value to Already Saved Values
I have this set up so that it saves the Coins Collected value and the loads it in another scene. Ill attach the two scripts below...What i want to do now is so the ***ObjectDestroy class*** will...
View ArticleAccess playerprefs on android with no root
Is it possible with some workaround, some 3rd party program or whatever to access the files where the player prefs are being stored?
View ArticleHow Can I save my values with Toggles in UI canvas 4.6 through scenes?
Hello community. I want to save my values of Toggles when they're true or false. But there's no PlayerPrefs.GetBool, soo how can I do it to save it through scenes when it's set on the option scene?...
View ArticleIm Doing HighScore System To My Game And There Is Something Wrong In My Scripts
So Im Doing highScore System When Players Health Is 0 It Sets New highscore But There Is Problem That When Helath Is 0 Nothing Happens -------HealthScript-------- var curHealth : int = 100; function...
View ArticleHow to disable writing to Windows registry?
Unity games use Windows registry to keep some player preferences, like last used resolution or full screen mode. The problem is, I don't want my Unity game to do it, but I haven't found an option to...
View ArticleLoadFromCacheOrDownload and PlayerPref.SetFloat (WebGL)
I'm using `PlayerPrefs.GetFloat` and `PlayerPrefs.SetFloat` to save the player's personal volume preferences. This works great, until I create a coroutine that contains a basic, nearly copied from the...
View ArticlePlayerPrefs not storing string?
I need to use PlayerPrefs to store arrays of bytes for my game. For some reason, the string I save with PlayerPrefs doesn't come out with the same in length. I.e. byte[] TestArray = new byte[256]; for...
View Article