BlueGraph icon indicating copy to clipboard operation
BlueGraph copied to clipboard

Real-time refresh

Open Ai00000 opened this issue 3 years ago • 4 comments

Graph can't update Node in real time after modifying the Node class. It needs to create a new Node.

Ai00000 avatar Dec 27 '21 09:12 Ai00000

Hi, in what way are you modifying the node class? Renaming? Adding/removing ports? Changing execution behaviour? etc.

Thanks! Chase

McManning avatar Dec 27 '21 14:12 McManning

When you modify the node structure, for example, add a new port .

Ai00000 avatar Dec 27 '21 18:12 Ai00000

Any news on this one? While developing nodes this is a big hassle. Renaming node classes results in errors in the console (that do not break anything, but I can't get rid of them). Adding Ports to new nodes is not applied to already existing nodes in graphs. So any changes would require a lot of manual recreation of nodes. So a "Node Refresh" option in the context menu would be great

JefferiesTube avatar Feb 02 '22 12:02 JefferiesTube

I can definitely see the annoyance here. I've had to do a lot of pre-planning before making nodes myself, but I understand that workflow doesn't always work.

Unity does have a FormerlySerializedAs attribute and Bolt has it's own similar method. We'd probably have to do something like that here, or a new tool (EditorWindow) for finding/fixing graph issues.

The above is just for renaming classes/ports though - it's sort of one of the headaches of Unity's serializer/asset loader. Without hinting what something was renamed to, we can't figure out what something was previously named once assets reload. For adding ports, I would expect that to work without issue. I'll look into seeing why that isn't refreshing nodes with updates.

McManning avatar Feb 02 '22 14:02 McManning