pub fn use_entity_component<T>(
    hooks: &mut Hooks<'_>,
    id: EntityId,
    component: Component<T>
) -> Option<T>where
    T: SupportedValue + Clone + Debug + Sync + Send + PartialEq + 'static,
Available on crate feature guest only.
Expand description

Use a component from an entity in the ECS.

If the entity or component does not exist, this will return None.