Function ambient_api::prelude::ambient_element::use_entity_concept
source · pub fn use_entity_concept<C>(hooks: &mut Hooks<'_>, id: EntityId) -> Option<C>where
C: ConceptComponents,
Available on crate feature
guest
only.Expand description
Use a concept from an entity in the ECS, and update its state if required.
If the entity does not exist, or does not match the concept, this will return None
.