Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Bug Button generates 2 click events.

Discussion in 'UGUI & TextMesh Pro' started by georgeq, Apr 15, 2021.

  1. georgeq


    Mar 5, 2014
    My UI contains a button that removes objects from the scene, but every time I click it 2 objects are removed instead of one, I thought it was a bug on my script, but after tracing the code, I discovered that the button is actually generating 2 consecutive events for each click.

    I removed the button component and added a new one, but the problem persists.

    I'm using 2020.2.2f1 with the new input system.