Struct amethyst_assets::HotReloadStrategy
[−]
[src]
pub struct HotReloadStrategy { /* fields omitted */ }
An ECS resource which allows to configure hot reloading.
Examples
let mut world = World::new(); // Assets will be reloaded every two seconds (in case they changed) world.add_resource(HotReloadStrategy::every(2));
Methods
impl HotReloadStrategy
[src]
fn every(n: u8) -> Self
[src]
Causes hot reloads every n
seconds.
fn when_triggered() -> Self
[src]
This allows to use trigger
for hot reloading.
fn never() -> Self
[src]
Never do any hot-reloading.
fn trigger(&mut self)
[src]
The frame after calling this, all changed assets will be reloaded.
Doesn't do anything if the strategy wasn't created with when_triggered
.