The order in which UnityEvents are invoked

I’ve noticed (and by digging into the assembly I got my observations confirmed) that the listeners in a UnityEvent are called in the same order as they appear in the inspector UI. I actually quite like this, but I don’t get why items in the list aren’t draggable (especially since it seems to use the UnityEditorInternal.ReorderableList)…

Is it because the order of the calls to listeners is not guaranteed and might be subject to change in the future, or is it a valid request to want the list to be reorder-able? :slight_smile:

It was reorderable during the beta i think (maybe earlier) but was removed because its not guaranteed.

Hi @phil-Unity , thanks for your answer.

Do you know if it will be guaranteed one day ?
It’s a pretty useful feature to call methods in a specific order when an event is fired.

from my understanding at least we wont ever be able to 100% guarantee it. but i’m pretty sure in 95% of the cases it will be the proper order. (think one platform or something does something weird).

Bumping this thread…

Is there any updates on the ability to reorder the list?

OK, so it has been ~6 years. Could we perhaps get an attribute that makes it reorderable?