Skip to content

CarePackage17/unity-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Unity Plugin

This showcases a Unity Native Plugin written in Rust that clears the screen using Direct3D 11 (and logs a bunch of messages when loading for the first time).

Code Organization

unity3d-sys contains raw, unsafe bindings to the native Unity API.
src/lib.rs uses those to talk to Unity and clear the screen with a red color.
RustNativePlugin-Unity contains a sample Unity project that uses the plugin.

Building

The plugin DLL can be built with cargo b from this directory.
To test the Unity project, copy the plugin DLL (and its PDB if you wish to debug) into the Assets/Plugins/ folder of the Unity project.

Functionality has been tested with Unity 2019.4.1f1 (LTS).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published