#unreal#best-practices#flowgraph

FlowGraph can be extended with custom nodes very easily.

Patterns

Updating pins from code

You can update input or output pins from code, for example in PostEditChangeProperty. To do this, simply change the InputPins or OutputPins values, and then call OnReconstructionRequested.ExecuteIfBound(). This delegate is what the actual flow editor binds into to detect when the node requires updating.

Best practices

  • Mark C++ FlowNodes as NotBlueprintable, unless they are designed as baseclasses for BP usage. This stops them from showing up in the list when creating BP-based nodes.