Houdini Flecs Unreal
3 paradigms
houdini simd ecs
Serialization
Using flecs in unreal engine, and writing a json file to a path
Convert a flecs::string to FString
const UGameInstance* GameInstance = UGameplayStatics::GetGameInstance(GetWorld());const UUnrealFlecsSubsystem* SubSystem = GameInstance->GetSubsystem<UUnrealFlecsSubsystem>();const auto World = SubSystem->GetEcsWorld();
// string.c_str() // const charconst FString SerializedFlecsWorld(World->to_json().c_str());
FFileHelper::SaveStringToFile(SerializedFlecsWorld, *FilePath)