godot-rust / gdnative

Rust bindings for Godot 3
https://godot-rust.github.io
MIT License
3.61k stars 210 forks source link

Add example for exposing Rust types to GDScript, using derive macros and/or wrapper classes #605

Closed ghost closed 1 year ago

ghost commented 4 years ago

This question is asked pretty frequently, so it's good to have something to point users to.

Bromeon commented 3 years ago

Partially documented in https://godot-rust.github.io/book/rust-binding.html. The points mentioned above (especially using a wrapper or auto-load script) still need documentation and/or an example.

chitoyuu commented 1 year ago

Autoload singletons now seem to be documented here: https://godot-rust.github.io/book/gdnative/faq/code.html#can-i-implement-static-methods-in-gdnative

Closing as completed.