### Setting Allowed Signal Modes for a Flow Node Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Features/SignalModes.md Defines the signal modes that are permitted for a specific Flow Node class. This example shows how to restrict a node to only Enabled and Disabled modes. ```cpp AllowedSignalModes = {EFlowSignalMode::Enabled, EFlowSignalMode::Disabled}; ``` -------------------------------- ### Get Dynamic Node Title Color Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Implement GetDynamicTitleColor() in UFlowNode to allow runtime-based color changes for node instances. ```cpp FLinearColor UMyFlowNode::GetDynamicTitleColor() const { // Return color based on runtime logic return FLinearColor::Green; } ``` -------------------------------- ### Configure Node Spawn Shortcuts Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Guides/AddingNodeSpawnShortcut.md Add this section to your project's `DefaultEditorPerProjectUserSettings.ini` file to define keyboard shortcuts for spawning various Flow Graph nodes. Restart the editor after making changes to apply them. ```ini [FlowSpawnNodes] ; Flow +Node=(Class=FlowNode_OnNotifyFromActor Key=A Shift=false Ctrl=false Alt=false) +Node=(Class=FlowNode_Finish Key=F Shift=false Ctrl=false Alt=false) +Node=(Class=FlowNode_SubGraph Key=G Shift=false Ctrl=false Alt=false) +Node=(Class=FlowNode_CustomInput Key=I Shift=false Ctrl=false Alt=false) +Node=(Class=FlowNode_Log Key=L Shift=false Ctrl=false Alt=false) +Node=(Class=FlowNode_ExecutionMultiGate Key=M Shift=false Ctrl=false Alt=false) +Node=(Class=FlowNode_NotifyActor Key=N Shift=false Ctrl=false Alt=false) +Node=(Class=FlowNode_CustomOutput Key=O Shift=false Ctrl=false Alt=false) +Node=(Class=FlowNode_Reroute Key=R Shift=false Ctrl=false Alt=false) +Node=(Class=FlowNode_ExecutionSequence Key=S Shift=false Ctrl=false Alt=false) +Node=(Class=FlowNode_Timer Key=T Shift=false Ctrl=false Alt=false) ; Comment +Node=(Name=Comment Key=C Shift=false Ctrl=false Alt=false) ``` -------------------------------- ### Initialize Flow Node Instance Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Call InitializeInstance() on a Flow Node just after its creation during Flow Asset initialization, before graph execution. ```cpp FlowNode->InitializeInstance(); ``` -------------------------------- ### Trigger Output with String/Text/TCHAR* Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Use the new C++ flavors of TriggerOutput() methods to pass FString, FText, or TCHAR* data. ```cpp TriggerOutput(TEXT("MyString")); TriggerOutput(FText::FromString("MyText")); TriggerOutput(TEXT('c')); ``` -------------------------------- ### Set Numbered Input/Output Pins Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Use SetNumberedInputPins() and SetNumberedOutputPins() for adding numbered pins in C++. ```cpp SetNumberedInputPins(3); SetNumberedOutputPins(2); ``` -------------------------------- ### Disable Flow Subsystem on Clients Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Set bCreateFlowSubsystemOnClients to false in Flow Settings to disable the Flow Subsystem on client machines. ```cpp UFlowSettings* Settings = GetMutableDefault(); Settings->bCreateFlowSubsystemOnClients = false; ``` -------------------------------- ### Enable Flow Plugin in .uproject File Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version22.md To re-enable the Flow plugin in your project, add this section to the Plugins list in your .uproject file. This is necessary as the plugin is now disabled by default. ```json { "Name": "Flow", "Enabled": true } ``` -------------------------------- ### Change Root Flow Mode Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Select a different RootFlowMode on the Flow Component in World Settings to control Flow asset instantiation on clients. ```cpp // In World Settings -> Flow Component -> Root Flow Mode // Select 'Client' or 'ServerOnly' as needed. ``` -------------------------------- ### Define C++ Flow Node Pins Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Update C++ Flow Node pins by defining them using methods like AddInputPins or by constructing FFlowPin structs with tooltips. ```cpp InputPins.Add(FFlowPin(TEXT("Spawn"), TEXT("MyTooltip"))); InputPins.Add(FFlowPin(TEXT("Despawn"))); ``` -------------------------------- ### Log Error Message Permanently Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Log error messages permanently on screen using UFlowNode::LogError with OnScreenMessageType::Permanent. Use Temporary to revert to old behavior. ```cpp LogError(TEXT("This is a permanent error message."), OnScreenMessageType::Permanent); LogError(TEXT("This is a temporary error message."), OnScreenMessageType::Temporary); ``` -------------------------------- ### Add Flow Graph Plugin as Git Submodule Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Overview/GettingStarted.md Include the Flow Graph plugin repository as a dependency in your project using Git submodules. Ensure you specify the correct branch (e.g., '5.0'). ```bash git submodule add -b 5.0 https://github.com/MothCocoon/FlowGraph.git Plugins/Flow ``` -------------------------------- ### Limit Allowed Node Classes in Flow Asset Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Use the AllowedNodeClasses array in UFlowAsset to restrict which node types can be added to a specific Flow Asset. ```cpp AllowedNodeClasses.Add(UMyDialogueNode::StaticClass()); ``` -------------------------------- ### Add/Remove Identity Tags Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Manage Identity Tags on a Flow Component during gameplay using AddIdentityTag() and RemoveIdentityTag(). ```cpp FlowComponent->AddIdentityTag(TEXT("Player")); FlowComponent->RemoveIdentityTag(TEXT("NPC")); ``` -------------------------------- ### Check Flow Node Data Validity Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Implement IsDataValid() in UFlowAsset to return the validation result of Flow Nodes. ```cpp if (FlowAsset->IsDataValid()) { // Flow data is valid } ``` -------------------------------- ### Override Node-Specific Colors Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Set NodeSpecificColors in UFlowGraphSettings to customize the color of any node. ```cpp UFlowGraphSettings* Settings = GetMutableDefault(); Settings->NodeSpecificColors.Add(UFlowNode::StaticClass(), FLinearColor::Red); ``` -------------------------------- ### Hide Nodes from Flow Palette Source: https://github.com/mothcocoon/flowgraph/blob/5.x/docs/Releases/Version11.md Add node classes to NodesHiddenFromPalette in UFlowGraphSettings to hide them from the Flow Palette without code changes. ```cpp UFlowGraphSettings* Settings = GetMutableDefault(); Settings->NodesHiddenFromPalette.Add(UMyCustomNode::StaticClass()); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.