imgui-node-editor
imgui-node-editor copied to clipboard
HasAnyLinks use
Hi, I tried to use HasAnyLinks function in my code but whiteout getting the correct behavior : the state never changes whatever a pin is linked or not. Is there a specific context to be able to use tis function ? Does it have to be used between begin/end of the editor part ?
HasAnyLinks work after you commit all links for this frame via Link.
ed::Begin() invalidate all links and marks them as 'dead'. Calling Link will revive it and keep alive until the end of the frame. HasAnyLinks will return true only for live links.
It is safe to call HasAnyLinks after calling ed::End.