marklovers / kaplay

🦖 A JavaScript game library
https://kaplayjs.com
MIT License
230 stars 14 forks source link

feat: event that runs when a component is unused from an object #149

Open amyspark-ng opened 2 weeks ago

amyspark-ng commented 2 weeks ago

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

An event that runs when a certain component is dettached from an object, it could be called dettach, or onDettach

mflerackers commented 2 weeks ago

That is already planned, as I need it for live queries, as well as some other things.