Open tqwewe opened 2 years ago
See the readme, thinking replacing the "example\RustExample" project with your project.
What it basically does (on windows) is :
rust project
into DLL
(unreal_rust_example.dll
here, using cargo build --release
)DLL
to your project's Binaries
folder and name it "rustplugin.dll" (hard-coded for now)So far, for adding to an existing project, I've copied over the RustPlugin to my Plugins directory,
Correct
and the .dll into Binaries, but I'm not sure where to write my Rust code, and place my Cargo.toml... and how to link that project with my game.
The dll is your game. If you want to write your own game, you can have a look at unreal-rust-example and maybe remove the things you don't want. If you compile that, it will produce a dll
that you can copy into the Binaries
folder.
Additionally you need to set the GameMode
to ARustGameModeBase
for your level.
I should provide a minimal example, but haven't had the time yet.
It would be nice to have some documentation on how to use this with an existing UE project, or even a brand new project.
So far, for adding to an existing project, I've copied over the
RustPlugin
to myPlugins
directory, and the .dll intoBinaries
, but I'm not sure where to write my Rust code, and place my Cargo.toml... and how to link that project with my game.