Quantcast
Channel: Questions in topic: "playerprefs"
Browsing index pages (1333 articles)

How to Save Toggle States and Slider Volumes with PlayerPrefs in Unity?

I have two scripts in Unity, one for audio management and another one that handles UI controls including sliders and toggles for sound. How to save the states of two toggles and volumes of two sliders...

View Article


How to save quality settings using PlayerPrefs? please, help me

public GameObject GRAPHICS_ST_PANEL; public void OPEN_GR_SET() { GRAPHICS_ST_PANEL.SetActive(true); } public void CLOSE_GR_SETTINGS() { GRAPHICS_ST_PANEL.SetActive(false); } public void VERY_LOW(bool...

View Article


Playerprefs doesnt save Dropdown.value

when i select the the dropdown value to "high" which is index value 2 then playerprefs doesnt save it lastquality stays at 0 i even cleared all player prefs public Dropdown Qualities; public List...

View Article

playerpref is still saved even after deleting the game,the prefab data will...

I made a code where I can save the achievements through INT prefabs, where 0 is false and 1 is true, the problem is when I export the game, resetting all the prefabs before, but when I win the...

View Article

Highest score not in mintues and seconds

When my game starts the timer works perfectly good but when I finish the level and go back to that scene the highscore is shown as 73:30303 instead of 1:22:171 how can this be done, (Guessing the...

View Article


How can I save the music settings?

So I have the following problem: The script below controls the volume of 4 different media. Where you can set the volume individually. So far it works but how can I save the volume for each media...

View Article

PlayerPrefs Highscore Problem

I'm developing a game that uses playerprefs to save the score and highscore, the problem is, everything works in unity editor, but when i build the app and install it on android, the highscore is not...

View Article

player prefs not working

I get an error saying Assets\shop_logic.cs(53,12): error CS0103: The name 'PLayerPrefs' does not exist in the current context. Maybe it is because there a two scripts with playerPrefs but I am not sure.

View Article


player prefs don't work, no error, I have no idea what's happening

this is a health script. using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class health : MonoBehaviour {...

View Article


When exactly is PlayerPrefs.Save called?

We're building a game on Windows (Unity version 2021.3.5f1) , that saves user data using `PlayerPrefs` (yes, we know it's not a good idea). We found a bug that we suspect comes from `PlayerPrefs` not...

View Article

error trying to reference a material with a string

i am trying to change a material of an object with a playerpref (its for a wapon customization system) i get this error= _Assets\weaponcustomizor.cs(37,53): error CS0103: The name 'o' does not exist in...

View Article

How to make that if level 1 isnt finished, that you cant play level 2

If you reach the finish of level 1, the playerpref: Level1Done will be set to 1. So that number must be constantly updated. If you press the button of level 2, but you havent reached the finish of...

View Article

There is a naming rule for key of PlayerPref name?

There is a naming rule for key of PlayerPref name? For example, I wonder if I can write special symbols such as '/' or ':', or spaces.

View Article


Inventory system - Update item count (without playerprefs)

Hi everyone and sorry if my english is poor, I'm french. I'm working on this virtual pet game and I'm having trouble figuring out how to keep track of each item count in my inventory. Right now i'm...

View Article

Same plist is being used for two different apps!

I've been working on a new project based on an old Unity project. I have renamed the project at the folder level, and have changed the name in Player settings. But when I built the project on the same...

View Article


Kindly confirm, is it possible to save Player position in level designing...

1. Actually I do not want to use Playerprefs to make Level designing 2. Is there any best approach to make level designing without Playerprefs in unity so kindly share

View Article

Why is player prefs not working?

Hello. I am working on a basic 2D platformer in Unity and am working on saving data. I am currently trying to save the maximum level (or the highest level they have unlocked) and also load it. Here is...

View Article


Can the hash suffix of PlayerPrefs ("_hXXXXXXXX") be disabled?

Hello, we are using PlayerPrefs to store some information, that is supposed to be read by another program. We only give simple names as keys like "TestString", but in the registry it becomes...

View Article

How can i visually update PlayerPrefs in game?

I have simple shop with PlayerPrefs works fine. My Playerprefs value displays player money in text. I want that when user buys item, money should change . Playerfabs work fine but player need to change...

View Article

PlayerPrefs not working on UWP

I have made a settings menu that uses player prefs to save the audio volume. This works well when I test it in unity but when I publish it and re-upload the game onto the Microsoft store, all the...

View Article
Browsing index pages (1333 articles)


Latest Images