schell / apecs

An asyncronous and pleasant entity-component system for Rust
46 stars 3 forks source link

How to get entity id in a system or facade visit with query as param. #7

Closed navneetankur closed 2 months ago

navneetankur commented 2 months ago

Query iterates over components of an entity. How can I get the entity id whose components I am currently iterating?

navneetankur commented 2 months ago

Got it. From Entry::id

schell commented 2 months ago

Glad you got it @navneetankur :)