Custom Functions Question

Forums 💬 FlowCanvas ⚙️ Support Custom Functions Question

  • This topic has 2 replies, 2 voices, and was last updated 5 months ago by Gavalakis.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21593
    fisj
    Participant

      How do custom functions relate to something like Unreal’s blueprint functions? Are custom functions instantiated? Can they have their own local internal variables that are unique per instance? Looking at this video https://youtu.be/wbcEhC3nRHQ I see the custom functions are just in a different part of the graph, or potentially in another graph and called. These look more akin to Unreal Blueprint Events.

      Any insight would be appreciated!

      #21594
      Gavalakis
      Keymaster

        Hello!

        Custom functions are not instantiated and are part of the same graph, indeed like events, hence more advanced since they can also return a value and support latent nodes to run inside them like a wait for example. They don’t hold local variables on their own thought.

        However, Macros are more similar to what you are after. Macros are basicaly flowscript graphs that can be re-used any number of times. They can have multiple inputs and outputs (both flow and value ports), and also hold their own local variables per instance. Do note however that a node referencing a Macro will only instantiate the Macro once, and not each time the Macro is called.

        If you have any further questions please let me know 🙂

        #21596
        Gavalakis
        Keymaster

          Just occured to me to also mention Flow Parameters that are related to your question, and which are a way to have variables (parameters) that are part of a flow execution. Here is a more detailed explanation about flow parameters on the docs 🙂

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.