What is the replacement for ComponentConfiguration.onRemove(ComponentType)
?
#162
-
I've just updated for the first time in awhile and had some configuration that handled resetting a component and adding it back to a pool when it was removed via: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I am not 100% sure what you mean. The |
Beta Was this translation helpful? Give feedback.
Ah okay that got replaced by the component lifecycle functions. In your case you need onAdd on your attach component and onRemove on your Sprite and Projectile component.
If your pools are not globally accessible then add them as injectables to your world and get them via
inject
in the lifecycle function.