Skip to main content

with_mesh_source

Function with_mesh_source 

Source
pub fn with_mesh_source<R>(
    world: &World,
    source_entity: Entity,
    f: impl FnOnce(&mut MeshSource, &Scope<'_>) -> R,
) -> R
Expand description

Run f on the world’s MeshSource, which lives on the source entity.

A shared-world entry point, so the scene’s own &mut World can reborrow it next to the mutable borrow of the source.