pub unsafe fn insert_by_id<T>(
component_id: ComponentId,
value: T,
mode: InsertMode,
) -> impl EntityCommandwhere
T: Send + 'static,Expand description
An EntityCommand that adds a dynamic component to an entity.
ยงSafety
ComponentIdmust be from the same world as the target entity.Tmust have the same layout as the one passed duringcomponent_idcreation.