Unlisten To Events


I have been using listeners a lot more lately and have been trying to optimize my game with object pooling. The problem I ran into is that you cannot “unlisten” to an event once you’ve registered it. There are instances where I may want to listen to a specific trigger but only for a certain time or under certain circumstances but I current am unable to do so.

Without deleting it (makes object pooling a null optimization in my case) and remaking it - I don’t know what else I can do.

This would be a highly valuable feature for me.

Thank you for considering,