Search Issue Tracker

Duplicate

Votes

1

Found in

2017.1.1p2

Issue ID

951878

Regression

Yes

UI.Button.OnClick Event is firing twice

uGUI

-

To reproduce:
1. Open attached Unity project "ButtonTest.zip"
2. Open "Main" scene
3. Go into Play Mode
4. Press the button

Expected result: the button should only fire once with each click
Actual result: With each click the button is triggered twice

Reproduced on: 2017.1.1p2, 2017.2.0b11, 2017.2.0f1, 2017.3.0a6, 2017.3.0a7,
Not reproduced on: 5.6.3p3, 2017.1.1p1, 2017.2.0b10, 2017.3.0a5

Comments (10)

  1. shubhamswaraj2021

    Aug 18, 2020 16:39

    good one <a href="https://www.lyricsauto.com">lyricsauto</a>

  2. andadssons

    May 06, 2020 10:43

    Hello,

    for me the OnClick event does not fire at all if I have a DOTween animation attached to a parent game object and not even the button game object. This does not happen every time but maybe once i four times.

    Best,
    Andreas

  3. andadssons

    May 06, 2020 10:38

    Hello,

    for me the OnClick event does not fire at all if I have a DOTween animation attached to a parent game object and not even the button game object. This does not happen every time but maybe once i four times.

    Best,
    Andreas

  4. AfroDieter

    Dec 12, 2017 11:33

    I have the same problem. Actually luckily for me it is not a problem yet but I can confirm. Every onclick action gets called 3 times.

  5. KillerFirefly

    Nov 30, 2017 05:53

    OnClick() called function running as many times as there are actions in the list.
    Version 2017.1.2f1

  6. NOAA_jeff

    Nov 06, 2017 19:09

    I can confirm exactly what Daimas described in Unity 2017.1.1p4

  7. Guilherme-Otranto

    Oct 03, 2017 16:31

    This is still not fixed on 2017.1.1p4....

  8. SuperUber

    Sep 22, 2017 19:28

    It makes both 20171.1p2 and 2017.1.1p3 completely unusable. How this bugs passes review? It's insane.

    Actually OnClick is calling exponentially, if there are 3 actions it gets called 9 nines and so on...

    This happens only on projects that were updated.

    With a fresh project that does not happens.

    Please resolve this issue as the VR and IOS fixes are really important, especially on version p3.

  9. eron82

    Sep 19, 2017 21:00

    Same for me in VR. Button fire twice on 2017.1.1p2

  10. Shikshen

    Sep 18, 2017 21:55

    For me, OnClick() is fired as many times as there are actions in the list. If you just put one event on the button it works fine, if you put two actions each one is called twice, if you put three actions each one is called three times, and so on.

    This makes version 2017.1.1p2 completely unusable.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.