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

access PlayerPrefs from js and c#

Hey, Is it possible to save a variable in Js with playerprefs and load that variable in c#?

View Article


problem incrementing player prefs

in my game i want the player taking screenshots of the game. Am using playerprefs to save number of screenshots so i can have screen-1,screen-2 screen-3 etc the problem is it does not increment above 1...

View Article


do player preferences get deleted if an iphone app is updated

I have an iphone app I'm developing that will store player preferences for how many coins they have purchased and which items they have bought. If at a later time I want to update the app what will...

View Article

How can I make the free and the full versions of my android game shares the...

Hi, As the title said I have 2 versions of my game , a free and a full version , how can I make them share the same playerprefs? thanks very much.

View Article

PlayerPrefs and own Class

Hello, i've got a class: class SoldierAsset{ var weaponName : String =""; var weaponTexture : Texture; var leftInStorage : float; } and my question is, how can i save this class with PlayerPrefs?

View Article


POWER UP not working for Player(Clone)???

So I have a power up where if I have it on, it kills the enemy on contact with the player. Pretty popular power up, but if I were to die, and then get that power up, it doesn't work. The power up shows...

View Article

Game window portrait mode?

Went to Project Settings/Player, and set Default Orientation for iPad to Portrait. But I can't find where the Game window is set to display portrait mode. All options in the Game window's dropdown menu...

View Article

Mac Player dimension settings problem

I'm trying to build a portrait Mac app but the Player settings (600 width, 800 height) are ignored. The app always opens with landscape orientation. Is this a bug? Thanks!

View Article


Setting Default PlayerPrefs on First Run?

I'm making a game for android, and am working on saving settings that the player will set. I'm using the playerPrefs object to save these between runs, but I have no idea how to set default settings....

View Article


Why is PlayerPrefs Not Saving?

Hi guys, Really stupid question, but I can't figure out why PlayerPrefs isn't saving? var total:int=0; var one:int=1; function Awake () { PlayerPrefs.SetInt("total", one); PlayerPrefs.Save();...

View Article

GUI not counting Player Deaths

There is something going on with my player or enemy script code. After I die, many functions are not useable. The first I noticed was a powerup that works when the player comes in contact with an...

View Article

PlayerPrefs will not save on iOS devices

Hi, I recently released my first game to the iOS app store. I am using PlayerPrefs to save the players score so that the game can be resumed at anytime. The players score is saved in a file called...

View Article

Converting float to string with time format; sending variables to disabled...

I'm working on a C# script which counts and records the amount of time the player has spent in the game from the start of the game to the end. The script uses three major float variables: - timer -...

View Article


PlayerPrefs Name + String, is this possible?

Hi, I have Google Play Services implemented with my app, but I have an issue. For saving I'm using PlayerPrefs then getting that score and sending it to the Google Play Leaderboards using the profile...

View Article

Saving Data! PLEASE HELP

Im making an achivements type thing in my game where once you get a certain nnumber of points you complete a challenge and the game saves it. But its not working. Im new t Player.Prefs and what not....

View Article


Playerprefs not storing data?

I have a script that should check for a stored username and password, then either send it to be checked, or wait for user input to send off, then change scenes. But for whatever reason, it's not...

View Article

Playing animation by String

Hi Guys, I have been trying to play an animation by doing the following: var animname : String; var canPlay : boolean; function Update(){ if(canPlay){ animation.CrossFade(animname); } } I get no errors...

View Article


Saving a variable between levels?

I'm trying to have an int (Levels_Unlocked) increase by one every time the scene loads. I tried to do this using playerprefs with no success. void Start () { PlayerPrefs.GetInt ("Level Unlocked");...

View Article

Saving skill allocations for characters

Hi guys, I'm stuck here trying to figure out if there's an efficient way to save skill allocations. My situation is, I have 5 characters, and 5 job classes which are interchangeable between the...

View Article

it is Playerprefs can use in saving highscore and both PC having this can...

i create a leader board highscore in my game but i bothering if my highscore see in other game PC.. so what i need to do to have a leader board saving my highscore, and globaly see the data even if you...

View Article
Browsing all 1333 articles
Browse latest View live


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