Skip to main content

with_mesh_source

Function with_mesh_source 

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

Run f with the mesh source mounted at source_entity, borrowing both at once.