Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement hot reloading for prototypes #22

Merged
merged 2 commits into from
Oct 12, 2022
Merged

Conversation

CatThingy
Copy link
Contributor

@CatThingy CatThingy commented Aug 9, 2022

This PR implements hot-reloading if the feature hot_reloading is enabled. Note that hot reloading only works for the first path specified in ProtoDataOptions.
The core implementation was copied from bevy_asset, with minor details changed to fit.

This PR will be obsoleted by #18, as Bevy's native asset hot reloading can be used instead.

Copy link
Owner

@MrGVSV MrGVSV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Just one question before I merge.

Also sorry for the delay in getting to this 😅

@@ -18,6 +18,8 @@ typetag = "0.2"
serde_yaml = "0.9"
dyn-clone = "1.0"
indexmap = "1.9"
crossbeam-channel = { version = "0.5", optional = true }
notify = { version = "=5.0.0-pre.15", optional = true }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this specifically need to be =5.0.0-pre.15? Can it work with just 5.0.0 (which is what Bevy's using)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used =5.0.0-pre.15 because that's what Bevy 0.8(.1) uses.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

@MrGVSV
Copy link
Owner

MrGVSV commented Oct 12, 2022

Merging now. I'll put together a release soon!

@MrGVSV MrGVSV merged commit 1edbd5f into MrGVSV:main Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants