#Can we list the components possessed by an entity?

5 messages · Page 1 of 1 (latest)

pliant mirage
#

It's only for debug purpose, but i retrieve an entity from another crate function. And i can't find what component this entity has? Even if i use an inspector like bevy_inspector_egui. The entity it return isn't present (but it can be in children component which is hardly accessible because not reflectable).
So is there a way to do it?

pliant mirage
#

Can we list the components possessed by an entity?

olive urchin
#

commands.entity(entity_id).log_components()

pliant mirage
#

Great thank you! 🙂