How to make hitboxes that don't persist?

for each frame, every hitbox on screen needs a unique name to call its overlap events. in earlier builds, maybe this wasn’t the case, but in the UI menu system i have been making, i have been using unique names from the start, so i didn’t notice a difference, but now that i tested buttons that share the same name, only the first button with that name becomes registered to receive hitbox events.

in my menu system, im parsing a list of text items to pull out all the labels and names of menu items, so each is unique, but if you want to procedurally make buttons, you may want to append an incremented number to the names that you want to reuse, like btn1, btn2, etc… and you can reset that number as the first thing you do after “event receive draw hud”. if you have separate menu pages that will never show up at the same time, like a settings menu and a main menu, they can have buttons that have the same name, but each page needs a list of unique button names.

this might be a feature that seems like a bug at first, but if multiple menu buttons were able to have the same name, they would call the same rollover event, causing them to both perform rollover logic when either is rolled over.