Skip to main content

instance_of

Function instance_of 

Source
pub(crate) fn instance_of(
    world: &mut World,
    mesh: RenderEntity,
    material: RenderEntity,
    transform: Transform,
) -> RenderEntity
Expand description

Spawn one rendered instance from asset entities, answering the new entity.

This is the instance a job that builds several things in one step spawns for itself. Panics when the world carries no MeshSource, or when an asset entity is gone.