Detect if a menu has just been opened or not #3952
codecat
announced in
Old/Archived discussions
Replies: 1 comment 1 reply
-
You can use IsWindowAppearing()
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I begin a menu with
BeginMenu
, is there a way to check if it had just been opened or if it was already open on the previous frame? I'd like to populate the items of the menu dynamically, but don't want to do it every single rendered frame.I can think of this as a way to do it, but it's kind of hacky:
Is there a more ImGui-native way to do this?
Beta Was this translation helpful? Give feedback.
All reactions