Search Unity

Question UI Button clicks continue to register after the initial input (bug?)

Discussion in 'Input System' started by ranjansikand, Dec 1, 2023.

  1. ranjansikand

    ranjansikand

    Joined:
    Apr 8, 2021
    Posts:
    110
    This is an issue I've been running into for a while, but I haven't found a solution for it. Also, it doesn't seem to happen every time.

    When I click on a UI button, the click continues to register after the initial input, even if I do something else in between. For example, in my game, I have a popup that appears when you pick up an item. When you click "close," then pick up a new item, the popup closes before you can see it because it's still registering the previous click.

    I've added the "On-Screen Button" component to each of my UI buttons per a previous advice, but it hasn't solved my issue.

    Any advice would be much appreciated!