0 votes

So I just found out that when I chose the language of a script there is an option called NativeScript my question is what is it ? the only doc I found is this : https://docs.godotengine.org/en/3.1/classes/class_nativescript.html and it doesnt say anything about it. Thanks !

in Engine by (15 points)

2 Answers

0 votes

It allows you to create C++ script bindings.

https://godotengine.org/article/dlscript-here

Here are some tutorials from the official documentation:
https://docs.godotengine.org/en/3.1/tutorials/plugins/gdnative/gdnative-c-example.html

by (337 points)
0 votes

https://godotengine.org/article/dlscript-here

Specifically, NativeScript is a way to write Native libraries using C or C++ and access the full Godot API functionality at the native (machine compiled) level.

Functionally, you write code in C or C++ and create bindings to that code for Godot to interface with.

Tutorials:

C:
https://docs.godotengine.org/en/3.1/tutorials/plugins/gdnative/gdnative-c-example.html

C++:
https://docs.godotengine.org/en/3.1/tutorials/plugins/gdnative/gdnative-cpp-example.html

by (24 points)

Thanks will check it out !

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.