Search Issue Tracker
Won't Fix
Votes
1
Found in
2018.4
2019.4.6f1
2021.1
Issue ID
1287978
Regression
No
PlayerPrefs.GetFloat doesn't return the default value when the string value corresponding to the same key is 7 characters long
How to reproduce:
1. Open the attached '1287978.zip' project
2. Open 'SampleScene' (Scenes > SampleScene) and enter the Play mode
3. Observe the Console
Expected result: The Console logs '-3.402823E+38'
Actual result: The Console logs '0'
Reproducible with: 2018.4.29f1, 2019.4.14f1, 2020.1.13f1, 2020.2.0b11, 2021.1.0a5
Notes:
- The issue does not reproduce with the GetInt method
- Does not reproduce on Mac
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (2021.1.X):
This is an edge case in a PlayerPref parsing code. Any change we introduce will affect any saved values and therefore we cannot make a change to fix this particular case.