Function ambient_api::prelude::entity::add_component_if_required
source · pub fn add_component_if_required<T>(
entity: EntityId,
component: Component<T>,
value: T
)where
T: SupportedValue,
Expand description
Adds the component
with value
to entity
if entity
does not already have that component.