Version: 5.4

EditorPrefs

class in UnityEditor

Switch to Manual

Description

Stores and accesses Unity editor preferences.

On Mac OS X, EditorPrefs are stored in ~/Library/Preferences/com.unity3d.UnityEditor.plist.

On Windows, EditorPrefs are stored in the registry under the HKCU\Software\Unity Technologies\UnityEditor key.

Static Functions

DeleteAllУдаляет все ключи и значения из реестра. Использовать с осторожностью.
DeleteKeyRemoves key and its corresponding value from the preferences.
GetBoolReturns the value corresponding to key in the preference file if it exists.
GetFloatReturns the value corresponding to key in the preference file if it exists.
GetIntReturns the value corresponding to key in the preference file if it exists.
GetStringReturns the value corresponding to key in the preference file if it exists.
HasKeyReturns true if key exists in the preferences.
SetBoolНазначает значение для параметра с идентификатором key.
SetFloatНазначает значение для параметра с идентификатором key.
SetIntSets the value of the preference identified by key as an integer.
SetStringНазначает значение для параметра с идентификатором key.