bevyengine / bevyengine/bevy

Asset hot reloading doesn't reload files that initially failed to load

Open
#7,470 0 comments 0 reactions 0 assignees View on GitHub
A-Assets C-Bug
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.9.0

## What you did

Loaded a custom asset file that failed to load (syntax error in file), I then modified (fixed) the file.

## What went wrong

The asset did not hot reload.

## Additional information

If I call ```asset_server.load("my_asset.txt")``` every game loop, the asset loader will repeatedly try to load the file, when it should only do so after the file has been modified and hot reloaded.

I have provided some example code.

[test_hot_reload.zip](https://github.com/bevyengine/bevy/files/10569520/test_hot_reload.zip)

In the ```assets/test.txt``` file, change the value to ```ok``` for the asset loading to succeed and anything else to fail.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.