Function ambient_api::entity::add_component
source · pub fn add_component<T>(entity: EntityId, component: Component<T>, value: T)where
T: SupportedValue,
Expand description
Adds the component component
for entity
with value
. Will replace an existing component if present.