Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

read json from assets c#

using System.IO;
using Newtonsoft.Json; //import in csproj

string path = Application.streamingAssetsPath + "/Assets/ShipTypes.json";
string contents = File.ReadAllText(path);
ShipTypes shipTypes = JsonConvert.DeserializeObject<ShipTypes>(countriesData);
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# record 
Csharp :: c# read excel file into datatable 
Csharp :: how to write text in specific position in c# 
Csharp :: get after point in c# 
Csharp :: superscript list 
Csharp :: clickable table row asp.net core 
Csharp :: docker Test a Connection using Curl 
Csharp :: how to make a block disappear in unity 
Csharp :: C# traverseall elements in class property 
Csharp :: convert getdate to ist c# 
Csharp :: c# external ip 
Csharp :: how to get relative path in c# 
Csharp :: connect to a database and loop over a recordset in C# 
Csharp :: linear search algorithm c# 
Csharp :: change skybox color unity 
Csharp :: cant find desktop and documents folder macOs 
Csharp :: blazor image button 
Csharp :: You can get events when an object is visible within a certain camera, and when it enters or leaves, using these functions: 
Csharp :: c# recorrer una lista 
Csharp :: how to use open hardware monitor in c# 
Csharp :: unity error log 
Csharp :: select many vs select 
Csharp :: .net core login redirect loop 
Csharp :: c# read string 
Csharp :: sql server query output to json file automatically 
Csharp :: Using Linq to get the last N elements of a collection? C# 
Csharp :: generic interface c# 
Csharp :: linq syntax 
Csharp :: unity unit testing 
Csharp :: wpf app transparent background with blurred image affect 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =