egui_node_graph icon indicating copy to clipboard operation
egui_node_graph copied to clipboard

Add api to remove param's from nodes

Open gmorenz opened this issue 2 years ago • 1 comments

Currently we can add parameters, but not remove them. It would be nice to be able to do both, to be able to do things like have math nodes that take a variable number of inputs, or to be able to grow/shrink the number of ouputs so that there's always another free one (for... reasons).

I've implemented this for output param's in 96dc5b6f672a5f8096d5f85b71ed2234ed835f27 - which depends on #30.

gmorenz avatar May 26 '22 03:05 gmorenz

Indeed, that would be quite useful. It's good that more people are using the library so we can test it against a variety of use case :slightly_smiling_face: This didn't come up in my own project so I had forgotten about adding this method.

Anyway, I'm happy to accept a PR for this once #30 gets merged.

setzer22 avatar May 29 '22 16:05 setzer22