Simple UE4 actor to import JSON maps made in Tiled. Not production ready.
The attached .blend contains a sample tileset and a script to generate a .csv with asset paths.
- Add
"JSon"
toPrivateDependencyModuleNames
in your build rules file (MyGame.Build.cs) - Include the source files TiledMapActor.h and TiledMapActor.cpp in your C++ project and build.
- Create a data table with TiledMapMeshTableRow data structure and fill it in manually.
OR
Run the script in the sample .blend file to generate a .csv data table which you can import. - Put your JSON map somewhere in the game content folder.
- Drop a TiledMapActor in the level and configure Map Path, Mesh Table and Tile Size.
- Press Import Map.