Net.RepGraph.SetDebugActor
Net.RepGraph.SetDebugActor
#Overview
name: Net.RepGraph.SetDebugActor
This variable is created as a Console Variable (cvar).
- type:
Cmd
- help:
Set DebugActorConnectionPair on server, from client. Specify
It is referenced in 2
C++ source files.
#Summary
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Plugins/Runtime/ReplicationGraph/Source/Private/ReplicationGraphDebugging.cpp:623
Scope: file
Source code excerpt:
}
FAutoConsoleCommandWithWorldAndArgs NetRepGraphSetDebugActorConnectionCmd(TEXT("Net.RepGraph.SetDebugActor"),TEXT("Set DebugActorConnectionPair on server, from client. Specify "),
FConsoleCommandWithWorldAndArgsDelegate::CreateLambda([](const TArray<FString>& Args, UWorld* World)
{
UE_LOG(LogReplicationGraph, Display, TEXT("Usage: Net.RepGraph.SetDebugActor <Class>"));
APlayerController* PC = GEngine->GetFirstLocalPlayerController(World);
if (!PC)
#Loc: <Workspace>/Engine/Plugins/Runtime/ReplicationGraph/Source/Private/ReplicationGraphDebugging.cpp:34
Scope: file
Source code excerpt:
* Net.RepGraph.StarvedList <ConnectionIdx> Prints actor starvation stats to HUD
*
* Net.RepGraph.SetDebugActor <ClassName> Call on client: sets server debug actor to the closest actor that matches ClassName. See RepGraphConditionalActorBreakpoint
*
*/
namespace RepGraphDebugging
{
UReplicationGraph* FindReplicationGraphHelper(const TArray<FString>& Args)
{
FName NetDriverName = NAME_GameNetDriver;
const FString* DriverStr = Args.FindByPredicate([](const FString& Str) { return Str.Contains(TEXT("driver=")); });
if (DriverStr)
{
FParse::Value(**DriverStr, TEXT("driver="), NetDriverName);
}
UReplicationGraph* Graph = nullptr;
for (TObjectIterator<UReplicationGraph> It; It; ++It)
{
if (It->NetDriver && (NetDriverName == NAME_None || It->NetDriver->NetDriverName == NetDriverName) && It->NetDriver->GetNetMode() != NM_Client)
{
Graph = *It;
break;
}
}
return Graph;
}
}
// ----------------------------------------------------------
// Console Commands
// ----------------------------------------------------------