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

Textbox code not working

So my code here is used for switching between groups of text. It has worked before but now it decides not to and I can't figure out why I even reset all the values please help. I also have checked that...

View Article


Save a timer in Hour:Minutes:Seconds to playerPrefs then load it on start

Hello getting a timer working it not difficult the difficult part is what value do i save? Im trying to save it to playerPrefs and when i start the game again it keeps on going on where it ended last...

View Article


Set Playerpref("String" + Int)??

I'm working on loading and saving my inventory system. I could just manualy type in every single slot number I thought I would have it just cycle through the array of slots like so: void SaveInv() {...

View Article

Undesirable call of Toggle's "On Value Changed" when "isOn" is changed...

I'm saving the user's value of "isOn" for various toggle states, and then setting those toggle states during start. Each toggle has a method I want called when the user changes the value of the toggle,...

View Article

How to give star(reward) only during the first time the mission is completed?

I have got around 40 missions. Every time a player completes any mission one star is given as a result. The missions are replay-able i.e you can play them all over again. What I want is to be able to...

View Article


Unity PlayerPrefs Doesn't work,

Hi, the playerprefs doesnt work in my project. Where am I making mistakes i dont know. Could you check this code? using UnityEngine; using UnityEngine.UI; public class Dice : MonoBehaviour { public...

View Article

Problem with If statement and Collision!?

Im trying to get an if statement to work on collision... void OnCollisionEnter(Collision other) { Score = GameObject.Find("Sphere").GetComponent().timerText.text; PlayerPrefs.SetString("HighScore",...

View Article

button and PlayerPrefs

i have 3 button i want when i click button 1, hide that button and show all button with PlayerPrefs, and when i click button 2, hide that button and show all button with PlayerPrefs i test my code but...

View Article


playerprefs spawning errors.

In my game I use playerprefs to keep track of what level ive reached, but its impossible to run because the same error is spawned every frame. It looks like this:![alt text][1] [1]:...

View Article


How to use PlayerPrefs to activate game objects permanently?

Hello fam, I am trying to create a simple trophy system within my game. I've managed to use PlayerPrefs to store data such as Integers for recording high scores etc. but I can't seem to figure out how...

View Article

panel and button

hii how i make a panel that change color whith PlayerPrefs when i click button

View Article

PlayerPrefs not getting the updated value from android SharedPreferences

Hi, I'm new to unity, and i'm trying to save a string value in android SharedPreferences and read it in unity **Writing in android shared preferences :** > SharedPreferences sharedPreferences =>...

View Article

Type Player is not marked as Serializable?

Please Help...I have no idea what this means. "SerializationException: Type Player is not marked as Serializable. System.Runtime.Serialization.Formatters.Binary.BinaryCommon.CheckSerializable...

View Article


Help with Player.prefs C#

i want to save the value count and duration public float cost; public int count = 1; public static float gold = 0.00f; public string itemName; private float baseCost; public float broi = 10; public...

View Article

Artifacts on cursor when using CursorMode.Auto

Hey guys! When using *CursorMode.Auto*, the cursor has some artifacts in my builds (MacOS and Windows), while in game mode, it seems perfect. I stumbled upon a thread of 2015...

View Article


Playerprefs to google play game service (backup)

The only thing i use in my game is playerprefs all throughout, i have no clue how to backup all these playerprefs to the google cloud service thing, so that when you login with your account it will...

View Article

How to Save&Load Best Time in PlayerPrefs

I've tried many examples from the internet, but none of them works. it's been 3days i stuck with this problem. I want to create a simple Save System that stores the fastest Time of a player when...

View Article


Copy/Paste from WebPlayer or save as cookie

So, I have a WebGL game, and I'm trying to add a save feature as requested in the comments. (see it here: [click][1]) I have a decoder and stuff, and it finally gives you one string which is your save...

View Article

Save PlayerPrefs on application exit?

Hey! I've been working on this for almost 2 weeks now, and it STILL won't work! Can someone tell me what I'm doing wrong? // Use this for initialization void Awake () { PlayerPrefs.GetInt("level", 0);...

View Article

Set int to object from list?

Hey! I've been working with saving for a while now, and I've run into an issue. I know how to stop the issue, I just don't know how to code it. I have upgrades in my game, and each upgrade should have...

View Article
Browsing all 1333 articles
Browse latest View live


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