Hi. I want the variable “TEST” to equal the PlayerPref “Volume”. But in this bit of code, TEST always stays at 0…why?
function Start(){
PlayerPrefs.SetInt("Volume",.6);
TEST = PlayerPrefs.GetInt("Volume");
}
Hi. I want the variable “TEST” to equal the PlayerPref “Volume”. But in this bit of code, TEST always stays at 0…why?
function Start(){
PlayerPrefs.SetInt("Volume",.6);
TEST = PlayerPrefs.GetInt("Volume");
}
Because .6 isn’t an int.