Split Flow Node

  • Author
    Posts
  • May 23, 2025 at 12:17 pm #1613

    Hi,
    I am trying to create a “Split Flow” node that can trigger multiple nodes at the same time but I am having problems.Split_Flow_Node_01a

    I’ve tried it like this, but the second output doesn’t execute.

    protected override void MakeIO(NodeFileEntry nodeFileEntry)
            {
                m_FlowInput = Inputs[0];
                m_FlowInput.DisplayName = "Flow In";
                m_FlowInput.RunAction = RunMultipleOutputs;

                m_FlowOutput1 = Outputs[0];
                m_FlowOutput1.DisplayName = "Flow Out 1";
               
                m_FlowOutput2 = Outputs[1];
                m_FlowOutput2.DisplayName = "Flow Out 2";
            }

            private void RunMultipleOutputs()
            {
                Debug.Log("[SplitFlow] Triggering first output");
               
                // Set the active output to the first one
                m_CurrentOutput = 0;
               
                // This will trigger the first output
                Run();
               
                // After completing the first flow, run the second one
                Debug.Log("[SplitFlow] Triggering second output");
               
                // Now switch to the second output
                m_CurrentOutput = 1;
               
                // This will trigger the second output
                Run();

    And I’ve tried using:
    RunFlowOutput(m_FlowOutput1);
    RunFlowOutput(m_FlowOutput2);

    But I’m getting errors.

    I don’t believe the system was intended to activate multiple flow outputs at the same time. Is there any way to bypass this and make a Split Flow node that can activate multiple nodes at the same time?

    Thank you.

  • You must be logged in to reply to this topic.