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]

Causes hot reloads every n seconds.

This allows to use trigger for hot reloading.

Never do any hot-reloading.

The frame after calling this, all changed assets will be reloaded. Doesn't do anything if the strategy wasn't created with when_triggered.

Trait Implementations

impl Clone for HotReloadStrategy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for HotReloadStrategy
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations