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 !

asked Jun 12 in Engine by Rex (14 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

answered Jun 12 by sparkart (328 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

answered Jun 12 by Chekr (22 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 How to use this Q&A? before posting your first questions.