PlayerPrefs.SetString 设置字符串键值
static function SetString (key : string, value : string) : void
Description描述
Sets the value of the preference identified by key.
设置由key确定的偏好值。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
PlayerPrefs.SetString("Player Name", "Foobar");
}
}
PlayerPrefs.SetString("Player Name", "Foobar");
最后修改:2011年3月11日 Friday 13:35