Script language:

  • JS
  • C#
  • Boo
Script language

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

PlayerPrefs.HasKey

static function HasKey(key: string): bool;
static bool HasKey(string key);
static def HasKey(key as string) as bool

Description

Returns true if key exists in the preferences.