Search Issue Tracker
Fixed in 2017.3.0f3
Fixed in 2017.1.X, 2017.2.X
Votes
5
Found in
2017.2.0b11
Issue ID
950588
Regression
Yes
OnClick event of the Button is called as many times as there are different events registered to it
To reproduce:
1. Open the project, attached by the user (Click.zip)
2. Open "sample" scene
3. Enter Play mode
4. Press the button on the screen
5. Observe the console
Expected: the event on the Button is called once
Reproduced in 2017.1.1p2, 2017.2.0b11, 2017.3.0a7
Did not reproduce in 5.5.4p2, 5.6.3p3, 2017.1.1p1
Regression introduce in 2017.1.1p2
Reproduced on Windows 10
Fixed in 2017.3.0b3
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [HDRP] Assertion printed when Maximum Reflection Probe count is higher than 64 due to k_MaxCubeReflectionsOnScreen when Raytracing is enabled
- Seams are visible on the Water System when multiple tiles are used and their Surface type is set to River
- Matching Game View creates unsaved changes even though nothing to save
- AudioClips do not have path or GUID in Build Report and incorrect size is reported
- The rendered color of the preset differs from the preview color when adding a new swatch in the HDR Color Picker
Guilherme-Otranto
Oct 03, 2017 16:32
This is still not fixed on 2017.1.1p4....
The version was released today, so I downloaded hoping it would have fixed this.
It doesn't, for me.
ChrisJohnson
Sep 23, 2017 23:02
2017.2f1 has the same problem. I'm hoping this gets fixed before the final 2017.2 release because this is a huge game breaking bug if you are using a lot of Unity Events.
MaskedMouse
Sep 23, 2017 09:38
Good job, 2017.1.1p3 is useless because this bug still exists.
In old or new projects it doesn't matter.
The number of items in the OnClick listener will just be the number of times each individual method will be called. Insane if you have multiple methods being called by a single button.
Do I even want to try 2017.2f1 now? it probably has the same issue
SuperUber
Sep 22, 2017 19:30
MAcOSx also happening
SuperUber
Sep 22, 2017 19:29
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.
onuryurdupak
Sep 22, 2017 09:30
Same happens for all UnityEvents declared in scripts.
eron82
Sep 19, 2017 21:03
Same for me in VR on 2017.1.1p2
GilbertoBitt
Sep 19, 2017 17:08
i also have this issue here on 2017.1.1p2 totally unusable!
Aseemy
Sep 19, 2017 14:34
Adding this text so this result is shown in search for non English speakers as well.
Unity button function called multiple times if multiple onClick functions are added to it
ZebecGames
Sep 18, 2017 10:25
Just wanted to add that this also occurs in the player and on the device (not isolated to the editor).