It would be really useful to know how many times an event has been subscribed to. I am sure this is already stored internally and I would really appreciate it being exposed as a property of an event.
What would be the use for this? I personally can’t think of any use cases except for debugging purposes. If you have any specific example(s) in mind I think it would be beneficial to add them to the request.
It’s mainly for debug purposes, but I can imagine a system where users may want to listen to an event such as a part being touched. You don’t want to remove that part until all event listeners have ceased listening.
I can’t really give any great examples beside debugging, but I am sure others out there can think of some.
Right now you’d need to track it all yourself which is fine, but a little messy when using multiple scripts. Especially if you were using a free model script for example… (not something I would do personally)
1 Like