bevy/examples/shader
JMS55 17f045e2a0
Delay asset hot reloading (#8503)
# Objective

- Fix #5631 

## Solution

- Wait 50ms (configurable) after the last modification event before
reloading an asset.

---

## Changelog

- `AssetPlugin::watch_for_changes` is now a `ChangeWatcher` instead of a
`bool`
- Fixed https://github.com/bevyengine/bevy/issues/5631

## Migration Guide
- Replace `AssetPlugin::watch_for_changes: true` with e.g.
`ChangeWatcher::with_delay(Duration::from_millis(200))`

---------

Co-authored-by: François <mockersf@gmail.com>
2023-05-16 01:26:11 +00:00
..
animate_shader.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
array_texture.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
compute_shader_game_of_life.rs Webgpu support (#8336) 2023-05-04 22:07:57 +00:00
custom_vertex_attribute.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
post_processing.rs Delay asset hot reloading (#8503) 2023-05-16 01:26:11 +00:00
shader_defs.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
shader_instancing.rs Webgpu support (#8336) 2023-05-04 22:07:57 +00:00
shader_material_glsl.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
shader_material_screenspace_texture.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
shader_material.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
shader_prepass.rs Handle vertex_uvs if they are present in default prepass fragment shader (#8330) 2023-04-23 08:07:15 +00:00
texture_binding_array.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00