imgui
imgui copied to clipboard
Pressing a button in :Draw presses it twice
see title; i am not sure what kind of debug output would be more helpful/informative. i've been able to get around this by specifying a cooldown until the code in the condition runs again after pressing the button but this seems hacky.
These cases are a bit tricky. What rendergroup does the entity have? It's possible that Draw is getting called twice per frame (opaque + translucent), in which case the event if
might also trigger twice. Sometimes also having reflective surfaces (i.e. water) visible on screen can cause it, although imgui should have relatively good protections against that.
Cooldown is an ok solution in my books, if it's not a rendergroup related issue.