UE5 C++ 5 - How To Read and Write Data Table Json with C++? - Unreal Engine Tutorial Editor CPP

preview_player
Показать описание
Because Jsons files that are generated using a DataTable are formatted completely differently from a normal Json file, we need new functions to read and write them.

────────────────────────────────────────────────────
────────────────────────────────────────────────────
────────────────────────────────────────────────────
────────────────────────────────────────────────────
Unreal Engine Version ► 5.1
────────────────────────────────────────────────────

0:00 Intro
0:44 Code from previous videos
0:57 Declare functions
2:06 Includes
2:21 Read json
4:25 Write json
5:21 Test
7:42 Patreon Wall!

#UnrealEngine #UE5 #UE5Tutorial #UE4 #UE4Tutorial
UE5 C++ - How To Read and Write Data Table Json with C++? - Unreal Engine Tutorial Editor CPP
Рекомендации по теме
Комментарии
Автор

At 0:28 in your video, you show to versions of JSON. On the left right side, it shows the vector, rotator and transform data in string format. This is the same format I see when I do a myTable->GetTableAsJSON().

Is there a way to get the JSON out of the table where it does not put TArray<MyVector> (in your case) in string format?
I know that if you are in the editor, right click on a table and export it out, it will export all the json in the proper hierarchical format like you have shown in your left side window.

The reason I'm trying to figure this out is because unfortunately the structures that are used in the data table I'm trying to pull data out of were defined in the editor, no down in C++... And trying to refactor all those structs and tables to use C++ structs will be a pretty big task that I'm not sure the business will give us time to do.

RickBlacker
Автор

Hi! How do you name C++ scripts with a number at the beginning? UE tells me it's not possible. Also the name of your class exceeds 32 characters limit, I had to rename by hand after creation outside of UE to have the same name than you. Thanks!

itsjordanellapin
Автор

Hey Alex, thanks for the videos, they are very helpful! I'm struggling with writing a DataTable from a CSV or aJson file at Event BeginPlay... is there a way to do it?

StefanoRomito-lpxy
Автор

how can I do this with VaRest api call to Json ? any ideas if so could you make a tutorial ? Unreal Lack of tutorials like this :C

MrrPancake
join shbcf.ru