PlayerPrefs.SetString
Scripting > Runtime Classes > PlayerPrefs
PlayerPrefs.SetString

static function SetString (key : string, value : string) : void

Description

Sets the value of the preference identified by key.

PlayerPrefs.SetString("Player Name", "Foobar");