Version: 2017.1
public static void SetString (string key, string value);

描述

设置由 key 标识的偏好的值。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { PlayerPrefs.SetString("Player Name", "Foobar"); } }