Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to store some variables on the device in unity

//Example using the PlayerPrefs system to store integers on the local device storage
//Writing data
PlayerPrefs.SetInt("myPref", 5);
//Reading data
myint = PlayerPrefs.GetInt("myInt");
Comment

PREVIOUS NEXT
Code Example
Csharp :: stringify c# 
Csharp :: how to use yield in c# 
Csharp :: c# string to float 
Csharp :: c# scroll to bottom of datagridview vb.net 
Csharp :: Plugging a Third-Party IoC Container (e.g. AutoFac) into .NET Core 6 
Csharp :: replace multiple characters in string c# 
Csharp :: mvc string format 
Csharp :: linq to json 
Csharp :: how read excel data in c# 
Csharp :: array declaration in c# 
Csharp :: unity public static variable 
Csharp :: c# chunk array 
Csharp :: c# convert string to uri 
Csharp :: c# get distinct values all fields from list 
Csharp :: compare two strings in c# 
Csharp :: unity 2d enemy patrol script 
Csharp :: microsoft forms create bitmap 
Csharp :: delete all rows from table mvc 
Csharp :: unity get max occurrence in list 
Csharp :: C# get column of 2d array 
Csharp :: join dictionaries keys c# 
Csharp :: c# ? 
Csharp :: c# const 
Csharp :: how to set a tag in asp net razor view stackoverflow 
Csharp :: asp.net get most recent file in directory 
Csharp :: unity rotate around point 
Csharp :: display array elemetns to text box c# 
Csharp :: unity basic public options 
Csharp :: unity gun clipping through walls 
Csharp :: how to round to nearest number in array c# 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =