Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
GDExtension 系统
GDExtension 是 Godot 专属的一项技术,它允许引擎在运行时与本地的 shared libraries 进行交互。你可以利用它来运行原生代码,而无需将这些代码与引擎一起编译。
备注
GDExtension 不是脚本语言,与 GDScript 无关。
本小节将阐述 GDExtension 的工作原理,主要面向希望从零构建 GDExtension(例如创建其他语言绑定)的开发者。若需使用现有语言绑定,请参阅其他文档,例如 C++ (godot-cpp) 或 社区实现的绑定。