PlayerPrefs.SetIntstatic function SetInt (key : String, value : int) : voidDescriptionSets the value of the preference identified by key.
JavaScript
PlayerPrefs.SetInt("Player Score", 10); using UnityEngine; import UnityEngine |
