A couple Questions

FlowCanvas Forums Support A couple Questions

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #729
    cj31387
    Participant

    Is there an API doc somewhere on seeing how certain nodes function in C# syntax? For example there are nodes in flowcanvas that seem custom like DeltaTimeVector3, it takes in a vector3 has a multiplier and returns a vector3 . I would assume the function would look something like

    Vector3 DeltaTimeVector3(Vector3 vec, float multiplier){ return vec * multiplier; } But I’d like to see how it is exactly structured in C# where can I find this besides digging through the source code is there an API somewhere?

    Also is it possible to create custom node based functions like unreal 4 where they are basically a graph within a graph, or do all custom functions have to be created first in C#? I can see the chart getting messy really quick if each flowscript is all just one graph, without organization by graph functions.

    Finally, is it possible to make editor scripts with flowcanvas? Extending the unity editor and making editor windows and drawers.

    Thanks in advance.

    PS if there is no way to make a new function inside flowcanvas outside of C#, what workflows would you recommend to keep each graph neat and clean and tidy.

    #731
    robautomatic
    Participant

    Mutual user; going to jump in for Gav here! Since there’s no API documentation at the moment, the best thing you can do is look at the source code to see what each node does. Also, double-clicking on some function nodes can take you directly to the code version of them so you know what they do in code form.

    For ex.,

    is the DeltaTimeVector3 node’s function. You were pretty close!:D

    Creating custom node-based functions are done here by using Macros. It’s very simple to do!

    Also, I’m not sure, but I don’t believe you can make editor scripts at all with FlowCanvas. Provided that you can’t run any FlowScripts outside of the game’s space (you always need to point to your graphs in some way in a game scene in order for them to run), I’m pretty positive that you can’t make custom editors.

    Hope that helps!

    #735
    Gavalakis
    Keymaster

    Hey,



    @robautomatic
    pretty much covered what I would have answered. Thanks man 🙂
    Just to to recap:

    – You can take a look at the existing nodes to see how they are done. It’s pretty straightforward. There is also a documentation section about creating custom nodes here.

    Macros is indeed our custom node-based functions in FlowCanvas.

    – Creating editor scripts is not supported.

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

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