MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnVisualScriptingDebugFlow

Function OnVisualScriptingDebugFlow

Source/Editor/Managed/ManagedEditor.cpp:121–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119};
120
121void OnVisualScriptingDebugFlow()
122{
123 if (Internal_OnVisualScriptingDebugFlow == nullptr)
124 {
125 Internal_OnVisualScriptingDebugFlow = ManagedEditor::GetStaticClass()->GetMethod("Internal_OnVisualScriptingDebugFlow", 1);
126 ASSERT(Internal_OnVisualScriptingDebugFlow);
127 }
128
129 const auto stack = VisualScripting::GetThreadStackTop();
130 VisualScriptingDebugFlowInfo flowInfo;
131 flowInfo.Script = stack->Script->GetOrCreateManagedInstance();
132 flowInfo.ScriptInstance = stack->Instance ? stack->Instance->GetOrCreateManagedInstance() : nullptr;
133 flowInfo.NodeId = stack->Node->ID;
134 flowInfo.BoxId = stack->Box->ID;
135 MObject* exception = nullptr;
136 void* params[1];
137 params[0] = &flowInfo;
138 Internal_OnVisualScriptingDebugFlow->Invoke(nullptr, params, &exception);
139 if (exception)
140 {
141 MException ex(exception);
142 ex.Log(LogType::Error, TEXT("OnVisualScriptingDebugFlow"));
143 }
144}
145
146void OnLogMessage(LogType type, const StringView& msg);
147

Callers

nothing calls this directly

Calls 4

GetMethodMethod · 0.45
InvokeMethod · 0.45
LogMethod · 0.45

Tested by

no test coverage detected