PlayerPrefs are deleted after compilation
I'm working on a simple 2D android game now. I use playerprefs to store all app data. After another compilation of the project, I launched it on my android device and saw that a record text field had...
View ArticleGoogle play services saved games highscore error
Hello, someone who knows how to save the score in the cloud with google play services, can see my code and tell me what is wrong, because I do not know why but it does not work I have "Saved Games"...
View ArticleUpgrading from cocos2dx to unity
My game is already on store which is built on cocos2dx now i am updating my game and i changed the game engine to unity , but i saved some data in user defaults in cocos2dx which is not accessible in...
View Articleadvanced SaveGame/LoadGame
Hello. I am making a gardening game for Android and IOS. I tough that Save/Load system would be simple and easy, so I did not worry about it, and now I have multiple GameObjects I need to save and...
View ArticleHow can I save a user chosen 3D shape of the object and load it back in via...
I've managed to figure out how to save the user's chosen position and load it back in, but I'm having some trouble understanding how to do something similar with PlayerPrefs for saving the 3D shape...
View ArticleBuy skins and save which ones I have bought in one playerprefabs
Hi, I'm trying to make a store in my game to buy skins to the character, but each one has a boolean variable called "bought" and I would like to know how I can save with PlayerPrefabs which of the...
View ArticleRemember User login data
Hi. I've started creating tiny android game, and I'm wondering what would be the best solution. User launches game for first time - he can login (nickname/pass) or log in as a guest and then change...
View ArticleHow can I pass values with Unity Analytics?
Hi everyone and thanks for the help. I am adding Analytics to our latest game and I can get all the custom events going to trigger from any point of the game. What I can't work out is to how to pass a...
View Articlecharacter selection across scenes
how can I take the player's choice in one scene e.g a character from character selection menu and instantiate it in another scene? do I make use of the playerprefs?
View ArticleHelp with HealthBar script.
When my player hit a rock with their raft theplayer looses 1 point of health and the scene begins again. I'm using player prefs to forward the player health to the next scene. I don't think it si...
View ArticlePlayerPrefs.GetInt("") returns wrong value
Hey, I'm saving the last level the player started to the playerprefs. code: public int lastLevel; public int currentLevel; void Awake(){ currentLevel = SceneManager.GetActiveScene().buildIndex; if...
View Articleplayerprefs
hello, i dont really know how playerprefs work internally, i would like to use playerprefs to store information about some events that occurr in my app, right now i am storing them using the day as a...
View ArticleMy playerprefs wont save and load my int to TMPro text
using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class Currency : MonoBehaviour { public int tokens; public int index; GameObject...
View Articlei need help with player perf
after add animator and network animator i saw this alt text the player model Floating from the ground ![alt text][1] [1]: /storage/temp/133064-untitled.png
View ArticlePlayerPrefs Autosave
Hello, guys! My aim is to set **autosave** and **autoload** for (my sort of) text-game. All I need to do is save *Content* position in *Scroll*. I would really appreciate if someone could give a peek...
View Articlei need to figure out how to add to a Player pref int
I have a script that controls the money for my game but it wont let me access it from another script iv looked up how to add to player prefs ints with no luck i figured maby just adding to the actual...
View ArticleLocking levels.
This is for locking public Button[] levelButtons; private void Start() { int levelReached = PlayerPrefs.GetInt("levelReached",1); for (int i=0; i < levelButtons.Length; i++) { if (i + 1 >...
View ArticlePlayerPrefs on Mobile
Hey so I am making a mobile game and I was wondering if saving game data (like highscore or coins) using PlayerPrefs is save enough (so everyone wouldn't be able to modify them easily). Since I am new...
View ArticleUsing PlayerPrefs to store string but it won't update on my UI
*I'm using a development build of my game to do this.* DifficultyManager Script: https://pastebin.com/mkUmvdH9 MenuHandler Script: https://pastebin.com/KM7aLawt Hierarchy: ![alt text][1] I want to know...
View Articlereset player prefs on start game
When I start the game, I want all player prefs to reset, but when a new scene/ the current scene is reloaded, I want the player prefs to stay the same.
View Article