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

Streamlined Save System

After watching this => https://unity3d.com/learn/tutorials/topics/scripting/persistence-saving-and-loading-data I'm left with one ominous question: I understand that it's good practice to have a...

View Article


How to set up unlockable Prefabs?

Ok I've looked for hours on how to do this and haven't been able to find anything so here I am. I'm wanting to set up a store to buy things in my mobile game. I have the currency "Coins" set up in a...

View Article


Is it possible to check if this is first start of the game after update?

Hi, Im having some trouble with some old PlayerPrefs values from earlier version, so I want to delete the PlayerPrefs using `PlayerPrefs.DeleteAll`every time the user has installed a new update of my...

View Article

onapplicationquit() function is not working with unity 4.6.3 (android)

Hi Guys i am using unity 4.6.3 , on that version **onapplicationquit()** function is not working , i want to save playerprefs in that function but it is not save the values and game state and also use...

View Article

How can i save long value in playerPrefs ????

i am working on my game and required to save long value to carry for next. But i don't know how can i save the long values in the playerPrefs . Thanks in Advance

View Article


Unity2D: PlayerPrefs.HasKey

I'm using playerprefs to save data through out scenes. Although I'm having troubles with saving this data when the application is closed. You see I have a IAP shop that gives the player a boomerang...

View Article

버전 차이에 대한 PlayerPrefs 초기화 관련 질문입니다

현재 회사에서 사용하고 있는 버전은 5.4.1이고 집에서 사용 중인 버전은 5.2.1입니다 회사에서 1.0.1 버전으로 빌드해서 안드로이드 마켓에 올렸는데 퇴근 후에 크리티컬한 버그를 발견하여 집에서 1.0.2로 빌드해서 다시 올렸습니다 그 후 저장되어있던 데이터가 전부 사라졌다라는 제보를 받았는데 저장값을 전부 PlayerPrefs로 저장하고 있는데 아무리...

View Article

How do I save my Highest time using playerprefs?

Hi, I'm currently working on a endless runner game and im struggling with my high score. I have a timer script that works just fine, but I want to able to save the highest score using playerprefs. Does...

View Article


[Android] How to manage time while the application is not running ?

Hello, thank you for reading and sorry if my english is bad, i try my best. I'm actually trying to make an application on Android that gets the actual time and displays it. I want my app to try to gets...

View Article


How to save progress in the game?

I'm thinking of making an RTS game. As you build things and make armies, I need a way to save it so that if you quit the game then come back, the progress will be saved. I know haw to use PlayerPrefs...

View Article

How to manually edit player prefs file on android ?

Hello, i have an old plugin that saves data to unity player prefs file, but since unity changed player prefs location i have to manually load & modify the old player prefs data. i tried using...

View Article

create a store to purchase gameobjects for 2d game like in color switch

Please help me create a store like in color switch. I have created a game and now want to create a shop. I want to have it like this. There should be a lock on each object with price on it and when i...

View Article

Toggle OnValueChanged ignore on start

So I have an UI.Toggle on my video settings menu that toggles a SSAO-bool and therefore enables/disables the SSAO script. I dropped the ToggleSSAO() method on OnValueChanged-field, so it gets called,...

View Article


joystick script not working need some help !

I made a Joystick controller script but if i toggel the box in game for left move it works but if i push the button that i supost to hit it is not working ????? using UnityEngine; using...

View Article

I build a own game but i have a cam problem

i made a own game server but when i play on player one and go to player 2 the player 1 i stealing his cam how can i fix this problem !!!! so each player have is own camera !

View Article


GetInt can only be called from the main thread on Android

Hi, I'm facing some problems recently with Android Build. I have a class to handle save locally, iCloud and Google Snapshot. It works like this: public class DataCloudPrefs { public static void...

View Article

GetInt can only be called from the main thread on Android

Hi, I'm facing some problems recently with Android Build. I have a class to handle save locally, iCloud and Google Snapshot. It works like this: public class DataCloudPrefs { public static void...

View Article


PlayerPrefs in WebGL not saving or deleting

After a while the game was working fine in WebGL, suddenly the PlayerPrefs got "stuck" in a particular state. I'm writing and deleting, and saving values, and get no errors that i can see in the...

View Article

[Android] When App closed get time when player was gone?

Hey, I've been trying to get the player's time when he was gone. We probably know those android/iOS games, like Cookie clicker, you get back online and you see how much you was gone for and whilest you...

View Article

Player Pref Security - iOS

I want to know about if we store data in iPhone via Player Pref, then its how much secure? Because I want to store important data. Based on high score, I want to give real prices to game player so its...

View Article
Browsing all 1333 articles
Browse latest View live


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