#React to component removal

8 messages · Page 1 of 1 (latest)

dry spear
#

Can I react to when a component is removed? I want to have a system that will update the colors of certain entities as components are added/removed. RemovedComponents<T> seems to only react to the removal of entire Entitys.

sullen osprey
#

RemovedComponents should react to individual components being removed I believe

dry spear
#

oh huh

#

lemme check again

sullen osprey
#

from the cheatbook:

Use the RemovedComponents<T> special system parameter type, to get an iterator for the Entity IDs of all the entities that had a component of type T that was removed earlier this frame.

dry spear
#

yeah

#

okay lemme try again

#

i think it's just a system ordering problem