PlayerPrefs.GetFloatstatic function GetFloat (key : String, defaultValue : float = 0.0F) : floatDescriptionReturns the value corresponding to key in the preference file if it exists. If it doesn't exist, it will return defaultValue.
JavaScript
print (PlayerPrefs.GetFloat("Player Score")); using UnityEngine; import UnityEngine |
