Search Issue Tracker
Fixed in 4.6.1
Votes
0
Found in
4.6.0f2
Issue ID
649407
Regression
No
A registered listener did not receive an event when invoking, after another listener is removed
To reproduce this issue:
1. Open the attached project
2. Open 'Test event' scene
3. It has a script which creates Unity Event and adds 2 listeners
4. Play the scene
5. Press 'T' which invokes event
6. The first listener receives the event ( "Test" is outputed in the console)
7. Then first listener removes itself from the listeners
8. The second listener does not receive the event
6. Press 'T' again
7. Now the second listener receives it ( "Hello" is outputed)
If you do not remove listener after receiving the event, everything works fine and both listener receives the event
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Add comment