How to save a value in player prefs? Var. (java)
So I'm trying to make a high score. I have this as my script (java): static var CurrentScore : int; var InternalScore : int; var ScoreText : GameObject; function Update () { InternalScore =...
View ArticleSave Datasets at runtime
Hello everyone, I have been working on an application that stores contacts (just a fun project) and I am having trouble saving and then loading data in the application. What I need to do is be able to...
View ArticleData missing by Android App crash
I've received bug reports about data missing from my users when android app crashed. Such a incident has never been occurred in ios version. and now I'm using PreviewLabs.PlayerPrefs for good...
View ArticleEdit variable in instantiated clone
Hello everyone, I believe my question says it all, but I need to be able to edit several strings/ints the I created in scripts that are attached to the clone. i.e, I have a prefab to clone, the prefab...
View ArticleLocal Leaderboard with unique names
I want to implement a leaderboard to a project I'm working on. Basically I doing a remake of Tanks! Tutorial.. I already implemented so that both players can enter a name before the game begins. Now I...
View ArticlePlayerPrefs saving, but not loading some values
I do use PlayerPrefs for everything (even knowing that it should be better to use XML), but it just doesn't works correctly! I mean, I have these attributes: private int stamna; private int health;...
View ArticleBaffling Resources.Load by playerprefs string problem.
This image shows my code. The expected behavior is as follows: An object, instantiated during runtime, runs a start function which saves its resource as a string. So, if I place a floor, it saves...
View ArticleHow to communicate between iOS and Unity3D?
We have small interactive activities and a Native loader that loads all unity activities. We want an issue in communication between loader and activities. When the activity is opened from the loader it...
View Article*JavaScript* High Score help (Need help with player prefs)
I have to make a high score display on the game over and menu scene, Right now I have just once you die, it displays the score you had gotten from that run on the game over scene and then resets wen...
View ArticleHighscore with player prefs help. (JAVASCRIPT)
I have to make a high score display on the game over and menu scene, Right now I have just once you die, it displays the score you had gotten from that run on the game over scene and then resets wen...
View Article(Java) Need help using player prefs to make a high score and display it etc.
I have to make a high score display on the game over and menu scene, Right now I have just once you die, it displays the score you had gotten from that run on the game over scene and then resets wen...
View ArticlePlayer prefs confusion + high score display (Java)
I have to make a high score display on the game over and menu scene, Right now I have just once you die, it displays the score you had gotten from that run on the game over scene and then resets wen...
View Articleleaderboard data - xml, database or PlayerPrefs
Hello everyone, I want to create a leaderboard for my game and I got confused by what I found. I saw people using a database, some use xml, other used to store through PlayerPrefs. What is the...
View ArticleWhy my LevelSelect Dont unlock
**Why if (PlayerPrefs.HasKey ("Level")) Doesn't Work** void Start () { playerInZone = false; } // Update is called once per frame void Update () { if (playerInZone) { PlayerPrefs.SetInt ("Level",...
View ArticlePersistence of PlayerPrefs in WebGL
Hi all, I am fighting with PlayerPrefs in my WebGL build as I want to have persistence between sessions and everything works great. BUT when I build a new release, the PlayerPrefs do not exist anymore....
View ArticleHigh Score with player prefs confusion (JAVA)
I have to make a high score display on the game over and menu scene, Right now I have just once you die, it displays the score you had gotten from that run on the game over scene and then resets wen...
View ArticleSaving Players' Progress By Using PlayerPrefs
Hello everybody and I apologize for my bad English. I've made a mobile game for iOS and Android terminals, and I wanna know how to make a saving data system to save the players' progression ? I found...
View ArticleHow do I save and load the state of the GameObjects with PlayerPrefs?
I'm making a game where the player can pick up items, when the are picked up, they are set inactive in the hierarchy. When they pick up the first item, 2 GameObjects in the hierarchy become active....
View ArticleColors get messed up when I click play
I have this game that, when I press play, the colors get very strange and distorted. When I launch the project the colors are normal, but the moment I press play, they get weird. I have my build...
View ArticleGoogle Play Leaderboard help
I try to use leaderboards in my game but I cant use long. I see this error. Assets/Scripts/HS2.cs(32,10): error CS1502: The best overloaded method match for `UnityEngine.Social.ReportScore(long,...
View Article