How to use the new interchange pipeline to import meshes at runtime, packaged builds?

Hi, Do you use a source build?

If so, do the following:

  1. Replace the IsRuntime function inside the BodySetup.cpp file around line 378 with this:
bool IsRuntime(const UBodySetup* BS)
{
#if !WITH_EDITOR
	const UWorld* EngineWorld = GEngine && GEngine->GetWorldContexts().Num() > 0 ? GEngine->GetWorldContexts()[0].World() : nullptr;
#else
	const UWorld* EngineWorld = nullptr;
#endif
	const UObject* OwningObject = BS->GetOuter();
	const UWorld* World = OwningObject && OwningObject->GetWorld() ? OwningObject->GetWorld() : EngineWorld;
	return World && World->IsGameWorld();
}
  1. Inside the StaticMesh.cpp file, set bAllowCPUAccess to true inside the constructor around line 3376 for example.
  2. Rebuild the engine and enjoy.
1 Like