UnityEvent stops triggering after removing a listener

I’ve got a UnityEvent that Invoke like this:

OnGoalCompleted.Invoke();

It works perfectly fine when in the editor there are 3 events that are listening to it like so:

8664450--1166862--upload_2022-12-15_16-28-7.png

When I remove the highlighted event, the event never reaches the first listener “UnlockLabUpgrades” when it fires (and it does fire, I checked multiple times).

So this doesn’t work:

8664450--1166865--upload_2022-12-15_16-29-36.png

I’m pretty sure it’s a Unity bug, but I can’t think of any proper way to test or fix it. Any ideas?

Thanks.

Any error message in console? I think maybe move the event to another script and see how it goes, if something blocks the script named GameFeatures then you won’t see the event invoked and your two listeners are on the same script.

Thanks. It was my stupid mistake :frowning:

My the object that was supposed to listen to the event, was listening on another event with a too similar name :frowning: