언리얼의 데이터를 json 파일로 추출하는 방법에 대해 알아보자 예제 파일 이전 로드 예제에서 사용했던 예제파일과 동일하게 출력되도록 할 예정이다. { "name" : "Kim" "level" : 20, "items" : [ { "itemid" : 100, "count" : 3, } { "itemid" : 200, "count" : 1, } ] "skills" : [ "fireball", "icebolt", ] } 파일 내용 작성 JsonWriter에 직접 Key Value를 입력하는 방법과 데이터를 가공한 JsonObject가 있다면 FJsonSerializer::Serialize 함수를 통해 자동 입력하는 방법이 있다. //Key Value 입력하는 방식 FString FileStr; FString ..
개요 언리얼 엔진에서 Json 포멧의 파일을 읽어들이는 방법을 알아보자 설정 [projectname].build.cs 프로젝트에서 Json 모듈을 추가하자 // Fill out your copyright notice in the Description page of Project Settings. using UnrealBuildTool; public class MyProject : ModuleRules { public MyProject(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; PublicDependencyModuleNames.AddRange(new string[] { "Core",..