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

PlayerPrefs - Registry Values stored as invalid DWORD

Hi Unity Answers, Out of some weird circumstances, I need to programatically read all the values of playerprefs stored in the registry, and not simply use PlayerPrefs.GetFloat(). When using Regedit I...

View Article


PlayerPrefs after 0 lives, want to load another scene.

I want to load another scene when player got kill when is > 0. I don't want to load on 0, I want to load when is played with 0 and is killed. I think the problema is in "Public void zeroVidas ()"...

View Article


PlayerPrefs HighScore problems, it doesn't work.

Hello community, I want to save highscore when player go to mainscreen or the scene gameOver. But I don't know how to do it and I'm trying to at least save the score but it doesn't Works. Here's my...

View Article

Issues with Save / Load system

Hello everyone, We've had a number of perplexing issues with our save system, and after days of beating my head against the wall trying to figure out what exactly is going on, I finally decided to bite...

View Article

If Statements with PlayerPrefs

Hello guys, I need to set game options using PlayerPrefs but i don't know how to write if statements. I wrote an example code #pragma strict var playTypeString : String; function Update () { var text =...

View Article


Saving final score and displaying on main menu

Ok, so I've been trying for a while now and I can't seem to figure out how to save the score that the player has once they die and set that to the PlayerPrefs. The way my script is set up now it saves...

View Article

How to create a save and load game proccess like SCP: Containment Breach?

Ok. I have learned a bit about player prefs, but I have no clue on how one would go about creating a save game for it. I want it to be like SCP: CB where you can press a button in the game then exit...

View Article

How to save gameobject values with respect to scene?

I am making a custom tool for my game, In my editor I have a IntSlider which has some value like 10. I want to save that value to a selected gameobject with respect to scene name. **Eg:** I have...

View Article


PlayerPrefs Bug

I can't set the "UnityGraphicsQuality" using PlayerPrefs.SetInt("UnityGraphicsQuality", QLevel) and QLevel is the right value. UnityGraphicsQuality will be set until I exit the game and start it again,...

View Article


HighScore - Timer

Hello, Im trying to make a level completion timer for my game. What Im trying to do is make a string show the time of the level completion, but, the problem is that saving a high score isn't working....

View Article

Playerprefs for Color

How can you use playerprefs to save colors? I know about int, string but there it seems like it cant save color.

View Article

High Score on Mobile

Hello everyone , im making a mobile game and i have score but there is no highscore im not making online leaderboard thing , it's my normal score code ; void StoreHighscore(int newHighscore) { int...

View Article

How do you save GameObject[]?

Hello, essentially what I'm trying to do is to save a GameObject[] array and all GameObject element positions in that array (NOTE- I DO NOT MEAN TRANSFORM POSITION). However, GameObject[] cannot be...

View Article


Issue with playerPrefs

I have a scene that shows a users score for that round and the highest score gotten in the level. The high score works fine, and updates accordingly each time I beat the last highscore. The problem is,...

View Article

One highscore player pref setting highscores for all levels

Hi everyone, I seem to be having an awful lot of trouble with player prefs the last few days. I have similar code to this in each of my levels for when the level ends: ##playerScript in my first...

View Article


Game/editor stops responding when going to Highscores

i have recently made 2 new scripts with playerprefs for setting the score when player reaches the end of the level and i'm try to write them to the highscores menu by using get there, since i've made...

View Article

How To Add PlayerPrefs Scores?

Hello again. This might be a simple question, but how can I add a saved score from one scene to another? So like let's say I have a score of 300, and I do something to load a different scene, played...

View Article


lists and player prefs adding more than one entry

Hi im looking for a way to add an entry to the list when the player finishes the game i cant get head around it can i have some help please here is the main script for creating and storing the list in...

View Article

How do I save a three dimensional array?

Hi, I would like to save a three dimensional string array. I just worked with the standard playerprefs and am not familiar with saving data. The array contains profile and character information, so it...

View Article

How do I acces GetInt out of the "main thread"

I get this error: GetInt can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. Don't use this function in the...

View Article
Browsing all 1333 articles
Browse latest View live


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