This project is the support repository for this article: Call into Rust from C# and Unity
Run cargo build --release
in Rust/
folder. It will build the library in release mode, you will find the DLL in Rust/target/release
folder.
Place the built DLL in Unity/Assets/Plugins
.
Open the Unity project in Unity/
folder. Open the scene Unity/Assets/Scenes/SampleScene
.
It contains RustRandomTest
component that calls into RustRandom
's interop static functions.