Notice
Recent Posts
Recent Comments
Link
스토리지
[4.16] 유니티에서 Json파일 읽어오기 본문
public void LoadDatas()
{
var ta = Resources.Load<TextAsset>("Data/chracter_data");
var json = ta.text;
Debug.Log(json);
var arr = JsonConvert.DeserializeObject<CharacterData[]>(json);
this.dicCharacterDatas = arr.ToDictionary(x => x.id);
Debug.Log(this.dicCharacterDatas.Count);
}
'Unity > 유니티 기본' 카테고리의 다른 글
[4.20] Atlas (0) | 2021.04.20 |
---|---|
[4.20] 아이템 습득 후 인벤토리에 표시 (0) | 2021.04.20 |
[4.16] json에서 데이터를 불러오고 게임오브젝트 만들기 (0) | 2021.04.16 |
[4.16] 씬 전환 (0) | 2021.04.16 |
[4.16] Post-Processing (0) | 2021.04.16 |
Comments