MCPcopy Create free account
hub / github.com/MothCocoon/FlowGraph / SetInspectedInstance

Method SetInspectedInstance

Source/Flow/Private/FlowAsset.cpp:870–893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

868
869#if WITH_EDITOR
870void UFlowAsset::SetInspectedInstance(TWeakObjectPtr<const UFlowAsset> NewInspectedInstance)
871{
872 if (NewInspectedInstance.IsValid())
873 {
874 if (InspectedInstance == NewInspectedInstance)
875 {
876 // Nothing changed
877 return;
878 }
879
880 bool bIsNewInstancePresent = Algo::AnyOf(ActiveInstances, [NewInspectedInstance](const UFlowAsset* ActiveInstance)
881 {
882 return ActiveInstance && ActiveInstance == NewInspectedInstance;
883 });
884
885 if (!ensureMsgf(bIsNewInstancePresent, TEXT("Trying to set %s as InspectedInstance, but it is not one of the ActiveInstances"), *NewInspectedInstance->GetName()))
886 {
887 NewInspectedInstance = nullptr;
888 }
889 }
890
891 InspectedInstance = NewInspectedInstance;
892 BroadcastDebuggerRefresh();
893}
894
895void UFlowAsset::BroadcastDebuggerRefresh() const
896{

Callers 6

OnBreakpointHitMethod · 0.80
OnCrumbClickedMethod · 0.80
PreStartFlowMethod · 0.80

Calls 2

IsValidMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected