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

Method UpdateAsset

Source/FlowEditor/Private/Graph/FlowGraph.cpp:286–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void UFlowGraph::UpdateAsset(const int32 UpdateFlags)
287{
288 if (IsLocked())
289 {
290 return;
291 }
292
293 /* UpdateAsset is called to do any reconciliation from the editor-version of the
294 * graph to the runtime version of the graph data.
295 * In our case, it will copy the AddOns from their editor-side UFlowGraphNode containers to
296 * their runtime UFlowNode and/or UFlowNodeAddOn ::AddOn array entry. */
297 for (UEdGraphNode* Node : Nodes)
298 {
299 if (UFlowGraphNode* FlowGraphNode = Cast<UFlowGraphNode>(Node))
300 {
301 FlowGraphNode->RebuildRuntimeAddOnsFromEditorSubNodes();
302 }
303 }
304}
305
306bool UFlowGraph::UpdateUnknownNodeClasses()
307{

Callers 1

AddSubNodeMethod · 0.80

Tested by

no test coverage detected