I have a UI created with a prefab. I have added a couple buttons like the complex buttons from the UI examples with ids like “btn_new_game”, “btn_load_game”. I can get the event in the event loop from the MenuState handle_event. I am having some trouble figuring out how to associate the target of the event with the specific button pressed.
How do you take the target Entity (or entity id) from the event and compare it to the id/text/widget of the UI Button clicked?