Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Save variable unity

//set any string value
PlayerPrefs.SetString("varName", "any string info here");

//Get any string value
Text.text = PlayerPrefs.GetString("varName", "if nothing found this text return");

PlayerPrefs.SetFloat
PlayerPrefs.SetInt

PlayerPrefs.GetFloat
PlayerPrefs.GetInt
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to get gravity from Rigidbody2D in c# 
Csharp :: base c# 
Csharp :: the underlying connection was closed nuget 
Csharp :: c# while loops 
Csharp :: unity normalize 
Csharp :: car controller unity 
Csharp :: c# int division to double 
Csharp :: unity save scene at runtime 
Csharp :: c# mysql select into datatable 
Csharp :: create stripe subscription pay_immediately 
Csharp :: c# catch two exceptions in one block 
Csharp :: delete items in c# 
Csharp :: How can I use Hex color Unity? , give hex color in unity 
Csharp :: ontriggerenter unity not working 
Csharp :: c# nunit test case 
Csharp :: c# dapper execute stored procedure with parameters 
Csharp :: c# list empty 
Csharp :: change canvas color uwp c# 
Csharp :: concurrent post request c# 
Csharp :: unity SceneTemplatePipeline 
Csharp :: Archivarskodex freischalten 
Csharp :: Go Statement in CSharp 
Csharp :: pass viewbag selectlistitem to razor 
Csharp :: how many zeros in quinnonagintillion 
Csharp :: how to if button pressed do something in c# 
Csharp :: how to add extra window to wpf 
Csharp :: how to edit a c# list 
Csharp :: replace filename extension c# 
Csharp :: how to get text color alpha unity 
Csharp :: json.net jobject replace value 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =