How to save setactive in array
Hi everyone, In this code every time i push the button its activate next gameobject[] gun. How i can save it in playerprefs. public class TestGun : MonoBehaviour { public GameObject[] gun; private int...
View Articleplayerprefs, save double?
I'm trying to save double by playerprefs. not sure what I'm wrong. Help! public double m_gold = 0.0; private double m_goldPerTouch = 1.0; private static string DoubleToString(double target){ return...
View ArticlePlease help how to save last index and load
Hi everyone can someone smart show me how to save last activated gun or last index got activated in playerprefs i m pretty new in coding and stupid, so please don't tell how to do it, show me :D thanks...
View ArticleHow to use PlayerPrefs
Hey guys, i started to work on a simple game yesterday, and it's almost done, but i wanted to implement a Shop for the Player to buy things. I already made a system to store how many points the Player...
View ArticleQuestions about changes to UnityEngine.Random. Random.Seed deprecated
Previously, I've been using PlayerPrefs to store an integer from Random.seed to save the level and restore the integer from PlayerPrefs to Random.seed to restore the level. The code to save the seed....
View ArticleDoes PlayerPrefs.Save() guarantee atomicity
If i do this: PlayerPrefs.SetString("X", "some string one"); PlayerPrefs.SetString("Y", "some string two"); PlayerPrefs.Save(); What kind of atomicity guarantees do I have? That is, assuming that my...
View ArticleWhat is the standard solution for preserving level data?
I've found different answers to how you might preserve data on gameobjects without resetting it when loading a new scene, such as DontDestroyOnLoad, PlayerPrefs, LoadLevelAdditive or even just using...
View Article[SOLVED!] PlayerPrefabs SetFloat and GetFloat is not working
In this code PlayerPrefabs.Setflaot and is PlayerPrefabs.GetFloat not working: using UnityEngine; using System.Collections; using UnityEngine.Audio; public class AudioMix : MonoBehaviour { public...
View ArticleChange the text of a UI button on clicking it?
When i click my ui button it changes the text once. then my script wont change the text back when clicked again. Ive tried about everything i can think of so asking for help here. guessing im overtired...
View ArticleIn Game Graphics/Resolution Options
I'd like to have a graphics settings menu in my game where the resolution the game starts in can be set. This gets saved in PlayerPrefs. The problem is, the setting names are things like "Screenmanager...
View ArticleI cannot store data into PlayerPrefs after a certain amount of data
I am currently using ArrayPrefs2 and I am saving about 256 times 256 times 6 Vector3 Values. Just to say there was talk about no limitations in PlayerPrefs but I will propably have to say that there is...
View Articleneed unity to connect with online admin panel and view credits,login system etc
Hello i would like to build a admin panel which will show user data like credits available to play in account , update credits,reset credits etc. how can i make unity 3d store game data on website. i.e...
View ArticleSet the username with an inputfield ?
Hi guys, i'm new around unity/c#, and i'm trying to make an online leaderboard for a flappy bird like game,i followed Sebastian Lague's Dreamlo tutorial,and from the looks of it, i need a username,and...
View ArticleGet String Not Allowed To Be Called from Mono Behaviour Constructor
What does this even mean and how can it be fixed? We need to be able to set a string into player prefs for users to use their own serial port configuration? GetString is not allowed to be called from a...
View ArticleA distinction of what PlayerPrefs is
From what I understand, a "PlayerPref" is supposed to save data relevant to the player. However, I'm somewhat confused by the name. Is it supposed to save the player's *system preferences*, or is it...
View ArticleHighscore Not Updating Upon Death
Okay, I wrote this last night, and it worked then. It no longer does today. The only things I changed were adding a Quit Game button upon death. Code: public class SetHighScore : MonoBehaviour { public...
View Articlehow to Save all Application Data after quit and restore them
Hello Unity Community, I've made a kind of application for Android and, i didn't care of any Save system. My application is totaly working while i don't close it, but, of course, after closing it, my...
View ArticleHow do i imports my variable to another variable and save it with PlayerPrefs?
I have a variable called 'Timer' and the timer goes down each section. I want to also take the time to another script wich will save when the character goes on the trigger. Like this: public float...
View ArticleHelp making a high score with player prefs/displaying it
I have to make a high score display on the game over and menu scene, Right now I have just once you die, it displayes the score you had gotten from that run and then it deletes it (I assume because the...
View ArticleHow to make a sensitivity slider?
So I want to make a sensitivity slider, my game is an FPS so it needs to be for first person controller and I was it it accommodate both X and Y sensitivity in the same slider. I want the slider on the...
View Article