PlayerPrefs to all users accounts
Its possible to save data with player prefs that all "login" users can acess, Since it saves its data on "Currente Users", only the user that its logged can access it. I need that it can be lead form...
View ArticlePlayerprefs not work as expected
Hi folks, i want some help with Playerprefs. I want to save the player's cash, so if he close the game, when he open again the cash values should be the same. I made this function; void Save(){...
View ArticleWhat is the best way to save PlayerPrefs so they are persistent through app...
Hello, I am developing a game for IOS and Android using Unity 4.6 and I am wondering about the best way to go about saving my user's data. Right now, I use PlayerPrefs to keep values like character...
View ArticleC# How To Save PlayerPrefs for Unity GUI
I want to save values within Unity's GUI. Except I'm not entirely sure how to retrieve the variables. For instance look at this function below. public void sliderText (Slider s) { Text t =...
View ArticleUpdate and Get PlayerPrefs during runtime?
Hello there, So I am working on my ingame store where a user can buy a powerup. Once he purchases it, an integer value gets increased by one which is then stored to a PlayerPref. However, during...
View ArticleHow to delete playerprefs??
void CheckLockedLevels (){ //loop through the levels of a particular world for(int j = 1; j < LockLevel.levels; j++){ levelIndex = (j+1); if((PlayerPrefs.GetInt("level"+worldIndex.ToString() +":"...
View ArticleC# Issues with either PlayerPrefs.SetVariable or UnityEvent.Invoke
I'm having some issues either saving with PlayerPrefs.SetVariable or loading with UnityEvent.Invoke. I'm trying to save both strings and bools in two separate classes. I'm not sure which since If one...
View ArticleHighscore not working
Hello, I am making a 2d catch game where you have to catch falling objects. I am trying to make a HighScore system, but I am really stuck right now.. This is my score script: using UnityEngine; using...
View ArticleSaving coins
Hello, I am making a android 2d catch game where you have to catch falling objects. Now when you catch one, you'll get one point. What I want now, is that when you are out of lifes, that on the menu is...
View ArticleSaving Data
Hi ! Ik have a drinks class with 2 variables in it : string drinkName, float drinkPrice; Each value is filled in by InputFields and then gets saved in a Drinks list. All working so no problem there....
View ArticlePlayerPrefs like settings for individual projects
Hey Guys, I have made a tools that uses player prefs to keep certain values/path for a specific project, the only thing is that when I start another project, It overrides all values that I have set for...
View ArticleSave/Load Animation State of Instantiated Prefabs
My game is made up of a single scene. At the start of the game lots (>100) of the same prefab are instantiated into the game. While playing the player is able to change the animation state of each...
View ArticlePlayerPrefs defaulting to 0
Hi Guys, I can't seem to fix this simple problem. When testing in editor or running a build for the first time, the music volume and SFX volume keeps defaulting to 0. This is my code. Am I doing...
View ArticleEnergy buildup system
Hi! I'm creating a new 2d game and every time a player starts/reloads a level the game takes down 1 energy point for the collection a energy points (max. is 20 points). Every 10 minutes the player...
View ArticleWhy do I get "A connection has already been set as ready." Error
So I implemented my own NetworkManager because I wanted to spawn different PlayerPrefabs depending on some selection and tell the Player Name. For now I want to get it to work to send the PlayerName...
View ArticlePlayerprefs being cleared on some devices when the phone is restarted...why!?
So I have a simple game on Android and iOS that makes use of the playerprefs feature of Unity. The problem, which I've not been able to reproduce on my own devices but have seen first hand on a...
View Articlekeep adding to playerprefs
I am making a game similar to something like temple run but like a platform type. I'm 90% finished on my project but i need help with the coin. I know how to use playerprefs to store data but i don't...
View ArticleIf two PlayerPrefs are on?
So I am having this issue where if I call upon one playerpref it works fine, and if I call upon a different playerpref it also works fine, but if I call upon both of them, it no longer works. I...
View ArticleSaving Game Android
I wanted to apply a saving system to my game so when they exit or it closes, it remember the last scene they were on. Right now here's how levels are called void NextLevel() { Time.timeScale = 1f; if...
View ArticleHello, all I need to know is the plane basic of how to store the int used to...
using UnityEngine; using System.Collections; public class Score : MonoBehaviour { static int score = 0; static int highScore = 0; static public void AddPoint() { score++; if(score > highScore) {...
View Article