Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
astrale-sharp opened this issue Oct 27, 2021 · 1 comment
Labels
new-topic A new topic to be added has been requested

Comments

@astrale-sharp
Copy link
Contributor

astrale-sharp commented Oct 27, 2021

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

@jacobsky
Copy link
Contributor

@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:)

@Bromeon Bromeon added the new-topic A new topic to be added has been requested label Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-topic A new topic to be added has been requested
Projects
None yet
Development

No branches or pull requests

3 participants