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

Hot Reload #26

Open
ScottKane opened this issue Jan 9, 2023 · 3 comments
Open

Hot Reload #26

ScottKane opened this issue Jan 9, 2023 · 3 comments

Comments

@ScottKane
Copy link

How do you achieve hot reloading in UE5? Are you just using cargo-watch or hot-lib-reloader to do this in you demo videos or should this just work out of the box?

@MaikKlein
Copy link
Owner

MaikKlein commented Jan 9, 2023

I should add some docs for it

cargo watch -i "example/*" -s "cargo build --release && cp target/release/slash_example.dll example/Slash/Binaries/rustplugin.dll"

This is currently what I use for my next sample. Basically you just compile your project and copy the new dll to the Binaries folder. Unreal-rust will then hot reload it.

@ScottKane
Copy link
Author

Awesome thanks

@ScottKane
Copy link
Author

Also if you use nightly you can use --out-dir to copy the output dll to the binaries folder as a final step in the build

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

No branches or pull requests

2 participants