setzer22 / egui_node_graph

Build your node graph applications in Rust, using egui
MIT License
711 stars 132 forks source link

Allow inserting responses in draw_graph_editor #94

Closed kamirr closed 1 year ago

kamirr commented 1 year ago

This allows a user to trigger an event externally as if it was created by UI. For example, to remove a node one just needs to insert a NodeRespone::DeleteNodeUi(..). Without this feature you need to remove the node from the graph and adjust the internals of GraphEditorState.