Sets the value of the preference identified by key.
PlayerPrefs.SetString("Player Name", "Foobar");
using UnityEngine;using System.Collections;public class example : MonoBehaviour { void Example() { PlayerPrefs.SetString("Player Name", "Foobar"); }}
import UnityEngineimport System.Collectionsclass example(MonoBehaviour): def Example(): PlayerPrefs.SetString('Player Name', 'Foobar')