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