Slider value saving?
I want to save my slider's value so when I change scences, the values remain the same and also retarting the game, it reamins the same. Here is my code so far which is on an empty game object with the...
View ArticleProblems with pulling a slider value - (Making sensitivity Sliders)
I'm just wondering why this doesnt work!? There arent any errors. I want to take the value (from my "menu" scene's slider, and use it's value to plug into as the float in the "MouseLook" Script. I...
View ArticleGetting a slider value from a different scene
I'm just wondering why this doesnt work!? There arent any errors. I want to take the value (from my "menu" scene's slider, and use it's value to plug into as the float in the "MouseLook" Script. I...
View ArticleSlider value not working?
I'm just wondering why this doesnt work!? There arent any errors. I want to take the value (from my "menu" scene's slider, and use it's value to plug into as the float in the "MouseLook" Script. I...
View ArticleHow to load two different scenes from a single UI button using PlayerPrefs
The game contains two controls - joystick and Accelerometer which i want to switch in the settings menu. I have used PlayerPrefs to assign both the buttons in the settings menu, an integer. For eg. for...
View ArticlePlayer prefs won't save or be retrieved.
I'm trying to save the high score but it won't set the value for the scene when being called and won't even save resulting in the Debug.Log("NEW HIGHSCORE") to be spammed. What do? using...
View ArticleUse PlayerPrefs to hard reset game without setting all values to 0
I'm having some problems with the hard reset method I'm working on. I wish to delete all saved data through PlayerPrefs, but it keep deleting everything and setting ALL saved data to 0. How can I set...
View Articlereference variables within my xml file.
So I have a script that uses PlayerPrefs.SetString/GetString which allows for a player to input their own name. This works successfully. For my game, I use an xml file which contains an element...
View ArticlePlayerPrefs Changing Variables?
So I've been looking around but I haven't seen anything that can answer this. I have my PlayerPrefs set to save several floats and ints from various sources in the game. Specifically upgrade buttons...
View ArticleCan you help me do a highscore please? I've got this problem..
if (isdead == false) { score += Time.deltaTime * 25; scoreText.text = ((int)score).ToString(); if (scoreText > PlayerPrefs.GetInt("Highscore")) { PlayerPrefs.SetInt("Highscore", scoreText); } } // I...
View ArticleAre playerprefs a safe way of saving data or not??
I've read that playerprefs data are stored in a folder on my device(Android) but i tried looking for the folder and i found nothing of the sort. I also tried deleting all my folders but the data is...
View ArticleSaving collection of viewed elements in Vuforia
I have a scavenger hunt going where you find 9 different elements. Only 4 have the special 'token'. When you view the specific elements there is a token on the bottom of the screen that shows up as...
View ArticleHow can I create a key to reset a playerpref which sets the velocity for my...
So I'm trying to make a button to reset the value which sets the velocity of my level but my current fixes aren't working and I'm not sure why, here's the current setup and the comments are my fixes...
View ArticlePlayerPrefs not working with android
![alt text][1]in my simple Game when i try to set the high score it works in unity editor and windows build but not in android build #pragma strict public var scoreTxt :GameObject ; public var...
View ArticleLevelSelect Reset Button
hey guys...im new here...i made a game with a level select screen...it includes 20 level right now...but when the player plays each level and make any scores it saves...and when i quit and get back to...
View ArticlePlayerPrefs on gameObject
I imported IAP System in Unity Everything Works fine but the only thing that is bothering me is when i buy (something) it works fine but when i restart the scene it all restarts which is not what i...
View ArticleSave score in Unity
I have the following script which I use for calculating the score public class Score : MonoBehaviour { Score sc; void Start() { GameObject obj = GameObject.Find("ScoreSystem"); sc = obj.GetComponent();...
View ArticleHighscore won't save
The highscore will work when I reload the scene, but when I close the app, the highscore variable won't save and it will be set to zero. here is my code: public static int highscore; public static int...
View ArticleHow to Save Object (Button) information on game restarting? please check code.
what I'm trying to do here is to set a button active and disable another button By pressing a Button, and Save this action on game Restarting. I tried this code below but not working. using...
View ArticleHow to set text?
Hi! I have a text that gives me the Score(Total), but i dont know how i can set this using Playerprefs. I hope that you can help me! (I'm using a 3D Text) ![alt text][1] For more explanaition I using...
View Article