UWorldPartitionRuntimeHashSet does not implement ContainsRuntimeHash() so the code here fails to add it to the debug set:
TSet<FName> FWorldPartitionDebugHelper::DebugRuntimeHashFilter;
FAutoConsoleCommand FWorldPartitionDebugHelper::DebugFilterByRuntimeHashGridNameCommand(
TEXT("wp.Runtime.DebugFilterByRuntimeHashGridName"),
TEXT("Filter debug diplay of world partition streaming by grid name. Args [grid names]"),
FConsoleCommandWithArgsDelegate::CreateLambda([](const TArray<FString>& InArgs)
{
DebugRuntimeHashFilter.Reset();
for (const FWorldContext& Context : GEngine->GetWorldContexts())
{
UWorld* World = Context.World();
if (World && World->IsGameWorld())
{
if (UWorldPartition* WorldPartition = World->GetWorldPartition())
{
for (const FString& Arg : InArgs)
{
if (WorldPartition->RuntimeHash && WorldPartition->RuntimeHash->ContainsRuntimeHash(Arg))
{
DebugRuntimeHashFilter.Add(FName(Arg));
}
}
}
}
}
})
);
Could you implement ContainsRuntimeHash() for UWorldPartitionRuntimeHashSet? Or could that function be removed since this debug code is the only code that calls it?
[Attachment Removed]