GraphView - Edge - Bezier with Handles?

Hi, any example how to customise an Edge for GraphView? We want to make the lines nice and organised.

In ideal situation have them as bezier curves with two control points and handles with the capability to add more control points.

GraphView is not meant for usage outside VFXGraph and ShaderGraph for now as it involves a lot of internal APIs that we need to formalize before exposing them.

In order to do custom ones you would need to use the MeshAPI of the visuallElements to generate the geometry.

I would do a separate element for the control point and the line rendering.

You can have an overview of how to use the mesh API here: Draw a line from A to B

Yes we see it is experimental.

Thanks. I see that 2020.2 introducing Elbow to solve that problem. I think bezier would be much eye pleasant and better to work with solution? Check the image. This is simple scene flow graph but the edges start to get messy already.

Also one feature request. Make the Edges animatable. I mean so that we can simulate “electirc” current flow. :slight_smile:

I’m especially excited with InspectorElement since then we can inspect the nodes ( or their fields ) directly on full screen sized graph. Do you have a floating window visual element on top a GraphView that can serve as InstpectorElement container? Similar to MiniMap.