thedmd / imgui-node-editor

Node Editor built using Dear ImGui
MIT License
3.73k stars 551 forks source link

Questions about the ID mechanism #306

Open QiuYilin opened 2 months ago

QiuYilin commented 2 months ago

In the example, Node, Link, and Pin share the same id incrementing mechanism. Can different types of elements have the same id? Will this cause problems?

If I want to display a general graph model through imgui-node-editor, does it mean that I have to create an additional ID mechanism for the graph to adapt to imgui-node-editor? Is there any recommended solution for this?