Skip to main content

apply_patch

Function apply_patch 

Source
pub fn apply_patch(world: &mut World, entity: Entity, patch: ComponentPatch)
Expand description

Writes a ComponentPatch onto the entity, adding the component first for the variants whose presence is the value (visibility, casts-shadow, ignore-parent-scale, script).