Trying to access other components using the Registry.get()inside the component hook, no component is returned even though the components are attached to the given entity.
Cause :
The component hook is trying to access the component when the entity's mappings has not been updated thus it accesses the archetype it previously was in.
Solution :
Call the component hooks after updating the entity mappings.
Description :
Trying to access other components using the
Registry.get()
inside the component hook, no component is returned even though the components are attached to the given entity.Cause :
The component hook is trying to access the component when the entity's mappings has not been updated thus it accesses the archetype it previously was in.
Solution :
Call the component hooks after updating the entity mappings.
Extra information:
N/A