Function ambient_api::prelude::entity::get_component
source · pub fn get_component<T>(entity: EntityId, component: Component<T>) -> Option<T>where
T: SupportedValue,
Expand description
Retrieves the component component
for entity
if it exists, or None
if it doesn’t.