zakarumych / egui-snarl

Customizable egui node-graph library
https://crates.io/crates/egui-snarl
MIT License
287 stars 28 forks source link

How to get the currently selected node? #31

Closed Capytara closed 2 months ago

Capytara commented 2 months ago

Thank you for your excellent work, it has helped me a lot ! But I have a problem now. I want to implement a function similar to inspector. When the user clicks a node, an inspector will pop up. But I don't seem to have found an function to get the currently clicked node.

DanielAdolfsson commented 2 months ago

Yes this feels like this is a missing feature.

zakarumych commented 2 months ago

Try it in 43a78e8212c503cbaa95f3b4411462f5d2bd65b2

DanielAdolfsson commented 2 months ago

This works well, very nice!