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.
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
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
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.
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?
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.
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.
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.
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:
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.