I’m attemping to implement a Killcam system in Lyra, but since UWorld::DuplicateRequestedLevels()
is not supported under WP, and LevelCollections are deprecated, every time I try to Duplicate Levels the error comes out like "UWorld::DuplicateRequestedLevels: Attempted to duplicate streaming levels for partitioned world. This is not a supported operation."
I guess the Lyra basically is a “Partitoned World”, so wondering if is there any Epic-supported method to instantiate a duplicate replay world under World Partition?
Reference below
void UWorld::DuplicateRequestedLevels(const FName MapName)
{
if (GEngine->Experimental_ShouldPreDuplicateMap(MapName))
{
if (!IsPartitionedWorld())
{
// ... Other codes ... //
}
else
{
UE_LOG(LogWorld, Error, TEXT("UWorld::DuplicateRequestedLevels: Attempted to duplicate streaming levels for partitioned world. This is not a supported operation."));
}
}
}