Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Graph Tools Foundation? [ com.unity.graphtools.foundation ]

Discussion in 'Editor Workflows' started by toomasio, Mar 25, 2020.

  1. toomasio

    toomasio

    Joined:
    Nov 19, 2013
    Posts:
    195
    Hello,

    I was digging through how the dots visual scripting works, and managed to look into this graph tools foundation package. It looks like there is a base here for creating node-like workflows. I used it to create a monobehaviour visual script but couldn't take it much further than that.



    Will it be possible in the future to use this to create our own state-machine, behavior trees, and other visual actions?

    There is very little information on how this package works. If someone could explain what it does exactly that would be great!

    Thanks,
     
    Last edited: Mar 25, 2020
    Stexe, msfredb7 and alexanderameye like this.
  2. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    You got a link for that?

    There's a few of these out there -- Which site did you find it?
     
    OldMage likes this.
  3. toomasio

    toomasio

    Joined:
    Nov 19, 2013
    Posts:
    195
    I believe I just added the package via the manifest. Not sure if that method still works. But I look for updates on this site : https://bintray.com/unity/unity-dev
     
    awesomedata likes this.
  4. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    Nope -- I don't see that anywhere on that site.

    I definitely would like to know the URL for this package and if it is still updated.
     
  5. Stexe

    Stexe

    Joined:
    Feb 2, 2014
    Posts:
    215
    Is this gone? I can't find it now.
     
    toomasio and awesomedata like this.
  6. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    I would like to have access to this too.

    Is it available in 2020.1 or .2 yet?
     
  7. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    I'm pretty sure this is now built into unity and called Graph View rather than Graph Foundation. THere's not much info on it but for a raw look at a slightly outdated version of the API - None of these is that exact old VS Graph look but the API itself does support vertical and horizontal graphs.



    Also a plugin being managed by one of the devs at Unity and a few other people, that more streamlined the whole API to make it easier to work with

    https://github.com/alelievr/NodeGraphProcessor

     
  8. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    I've played with this before actually, but I couldn't figure out how to use some of its advanced features (i.e. like stacking or vertical nodes). Has anyone written any examples on how to get a graph up and running with those kinds of features? This looks like a really great base.
     
  9. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    The Github link has a vertical stack example

    upload_2020-9-21_18-10-2.png
     
    awesomedata likes this.
  10. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    Oh wow. It does!

    Thanks!!

    My bad -- I guess I didn't look past the documentation bits. lol
     
    Last edited: Sep 21, 2020
  11. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    I did some digging into the example code, but I didn't see any way to do Vertical graphs in this. I must be overlooking something somewhere. Have you managed to turn any of these into vertical flow graphs?
     
  12. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    No, I haven't messed with the code for this yet. It's just something I found when I was looking up on how to use the Graph View. The docs I think also had something on it, maybe this can help a little, although a bit old. It talks about everything the base API supports. It talks about stacking closer to the end.

    You can also have a look at the new Shader Graph Source, it uses stacking now.

     
    awesomedata likes this.
  13. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    Thanks, I appreciate your help!

    Unity's graph stuff is actually not too terrible imo. I definitely want to see what I can do with it.


    That said, I wonder if anyone has found a way to make graphs vertical? -- I haven't seen it anywhere besides drop 6 of DOTS VS, but I really like the idea for semantics purposes.
     
  14. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    Currently, VFX Graph and Shader Graph are vertical but they just don't look like Drop 6 and earlier for DOTS VS.

    You could probably find an old Drop and look at the source code for those versions. It most likely comes down to how they style the nodes in the vertical stack.
     
  15. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    Interesting... I know VFX Graph was vertical, but didn't know Shader Graph is -- I'm on an older version of Unity atm.

    Thanks for the idea -- I'm actually looking into this already!
    I really planned to devote my weekend to digging into this, but life happened. So maybe sometime later this week. D:
     
  16. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    927
    Is this going to become part of Unity API or is this an external API,really curious about this
     
    pokelocos and Catsoft-Studios like this.
  17. Orimay

    Orimay

    Joined:
    Nov 16, 2012
    Posts:
    304
    Me too!
     
    Catsoft-Studios and Ruchir like this.
  18. Nexer8

    Nexer8

    Joined:
    Dec 10, 2017
    Posts:
    271
    They’re two completely different APIs. Basically Graph View is an experimental API used for shader graph and in some other tools, but there are currently no developers working on it as it was abandoned in favor of the Graph Tool Foundation. I wrote a little forum post about it, which will lead you both to the link to the package and a Twitter thread showing some of the features.

    Also, it says there is a complex download process, but you can just go to the package manager and add a package from URL and use this: “com.unity.graphtools.foundation”. Then download the samples and try it out. Last update was just a couple of days ago.
     
    marcospgp and LooperVFX like this.
  19. LaurentGibert

    LaurentGibert

    Unity Technologies

    Joined:
    Jan 23, 2020
    Posts:
    170
    LooperVFX and Nexer8 like this.