#One time render to texture
2 messages · Page 1 of 1 (latest)
fn finish(
mut commands: Commands,
temps: Query<Entity, With<Temp>>,
time: Res<Time>
) {
if time.elapsed().as_secs_f32() > 1. {
for e in temps.iter() {
commands.entity(e).despawn();
}
}
}