×
Declaration. public static void SetInt(string key, int value);. Description. Sets a single integer value for the preference identified by the given key.
Sets the value of the preference identified by key . PlayerPrefs.SetInt("Player Score", 10); using UnityEngine; using System.Collections; public class ...
People also ask
PlayerPrefs is a class that stores Player preferences between game sessions. It can store string, float and integer values into the user's platform registry.
Feb 24, 2021 · Sets the value of the preference identified by key . //Attach this script to a GameObject in the Scene to set up the PlayerPrefs. using ...
Unity is the ultimate game development platform. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the ...
Develop once, publish everywhere! Unity is the ultimate tool for video game development, architectural visualizations, and interactive media installations ...
Sets the value of the preference identified by key . PlayerPrefs.SetInt("Player Score", 10); //Attach this script to a GameObject in the Scene to set ...
static function SetInt (key : String, value : int) : void. Description. Sets the value of the preference identified by key. JavaScript. JavaScript; C#; Boo.
Sets the value of the preference identified by key . PlayerPrefs.SetInt("Player Score", 10); //Attach this script to a GameObject in the Scene to set up the ...
Sets the value of the preference identified by key . PlayerPrefs.SetInt("Player Score", 10); //Attach this script to a GameObject in the Scene to set ...