gdnative-book icon indicating copy to clipboard operation
gdnative-book copied to clipboard

Mention how to use a native class made in rust as a Reference by creating .gdnlib and .gdns files

Open astrale-sharp opened this issue 4 years ago • 1 comments

There has been discussion about this here godot-rust/#770

The idea is to write a tutorial so as to be able to do this from the gdscript side

extends Node

func _ready():
        var x = MyNativeClass.new() # this is written in rust and can be a reference for instance
        x.native_hello_world()

This has been mentioned to be a starting point.

I would be interested to do this and have some inputs unless @jacobsky is already on it?


Edit Bromeon: fixed links

astrale-sharp avatar Oct 27 '21 15:10 astrale-sharp

@astrale-sharp Thank you for the offer!

The only PR that I have right now is #43 which includes an additional section for the Rusty equivalent to on readyt so if you would like to add an entry to the FAQ near there, I'd be happy to review it when you are ready:)

jacobsky avatar Oct 28 '21 03:10 jacobsky