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

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


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


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

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

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


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

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

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


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


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

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

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

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

Browsing all 1333 articles
Browse latest View live


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