Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity save list to json

public class MyList {
	public List<T> list;
}

var class = new MyList();
var outputString = JsonUtility.ToJson(class);
File.WriteAllText("C:MyFile.json", outputString);

//In reverse, you can deserialize anything doing this:
var inputString = File.ReadAllText("C:MyFile.json");
var class = JsonUtility.FromJson<MyList>(inputString);
Comment

PREVIOUS NEXT
Code Example
Csharp :: C#: convert array of integers to comma separated string 
Csharp :: c# remove non-alphanumeric characters from string 
Csharp :: delete null elements array c# 
Csharp :: c# request.url 
Csharp :: manchester united 
Csharp :: how to input a double in c# 
Csharp :: bitmap to byte array c# 
Csharp :: unity rotate gameobject 90 degrees 
Csharp :: c# remove accents 
Csharp :: unity detect number key 
Csharp :: #region in c# 
Csharp :: how to reference text mesh pro unity 
Csharp :: pig sus 
Csharp :: how to move your character in unity 2d game 
Csharp :: unity time.deltatime timescale 0 
Csharp :: c sharp gun shooting 
Csharp :: C# reflection invoke static generic method 
Csharp :: db scaffolding ef core 
Csharp :: c# create datatable 
Csharp :: jitter on collision for 2 rigid bodies 
Csharp :: countdown timer c# unity 
Csharp :: unity temperature to colour 
Csharp :: validate base64 string c# 
Csharp :: dapper delete where in list 
Csharp :: c# unity 2d play video 
Csharp :: c# dictionary get highest key 
Csharp :: set label position winforms 
Csharp :: unity how to change the text on a button 
Csharp :: how to take user input in string in c# 
Csharp :: convert string to array c# 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =