Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorPrefs.SetInt

Switch to Manual
public static function SetInt(key: string, value: int): void;

Parameters

Description

Sets the value of the preference identified by key as an integer.