Search Issue Tracker

By Design

Votes

0

Found in

5.5.0b2

Issue ID

831905

Regression

No

EditorPrefs.GetString's default value can not be null

Scripting

-

To reproduce:
1. Open attached project
2. Press Window > Test EditorPrefs.

Alternatively, put this line in a script and run it: Debug.Log (EditorPrefs.GetString("UNDEFINED_KEY", null) == null);, it will print false, even though the function should return null, it won't, and the console will print "False".

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.