Versions with this page:
Versions without this page:
设置由 key 标识的偏好的值。
key
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Example() { PlayerPrefs.SetFloat("Player Score", 10.0F); } }