I want to create a “voxel terrain” (MineCraft like) editable only in editor, in game mode he should be as static mesh.
I do not understand well with the architecture of UE4, I think do it so:
- Create MyCubeTerrain class, derived from AActor
- Create MyChunkStorrage class, derived from USceneComponent. He is contain voxel data, and StaticMeshComponents for each chunk. StaticMeshComponents needs to draw generated static meshes.
- Create plugin for editing MyCubeTerrain in editor.
Whether correctly I think?
The occlusion culling will work if all meshes be in one AActor?
p.s.
Can i remove all VoxelData in Cooking? not needed in game package.