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

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 Article


Save 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 Article


Data 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 Article

Edit 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 Article

Local 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 Article


PlayerPrefs 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 Article

Baffling 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 Article

How 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 Article


Highscore 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 Article

Player 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 Article

leaderboard 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 Article


Why 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 Article

Persistence 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 Article


High 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 Article

Saving 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 Article


How 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 Article

Colors 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 Article

Google 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
Browsing all 1333 articles
Browse latest View live


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