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