Version: 2022.3
言語: 日本語

EditorPrefs

class in UnityEditor

マニュアルに切り替える

説明

Stores and accesses Unity Editor preferences.

On macOS, EditorPrefs are stored in ~/Library/Preferences/com.unity3d.UnityEditor5.x.plist.

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

On Linux, EditorPrefs are stored in ~/.local/share/unity3d/prefs.

Static 関数

DeleteAll設定情報からすべてのキーと値を削除します。注意して使用してください。
DeleteKey設定情報から key と対応する値を削除します。
GetBoolキーが存在する場合、key に対応する値を取得します。
GetFloatReturns the float value corresponding to key if it exists in the preference file.
GetIntキーが存在する場合、key に対応する値を取得します。
GetStringキーが存在する場合、key に対応する値を取得します。
HasKeyReturns true if key exists in the preferences file.
SetBool key で識別される設定情報の値を設定します。
SetFloatSets the float value of the preference identified by key.
SetIntSets the value of the preference identified by key as an integer.
SetStringSets the value of the preference identified by key. Note that EditorPrefs does not support null strings and will store an empty string instead.