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...
引擎的扩展 API
本节将介绍几种你可以用 C++ 代码来扩展引擎的方法。你可以通过创建一个 module 来调用这些 API。需要注意的是,你能对引擎进行的修改远不止这里介绍的这些——本节只是挑选了一些常见且实用的方法来进行展示。
另外,这里介绍的一些函数也可以通过 GDExtension API 来使用。你可以通过创建基于 godot-cpp 的 GDExtension 来在 C++ 中使用它们,或者使用任何 community-created GDExtension implementations 。不过需要注意的是,与模块 API 相比,GDExtension 在部分代码或目录结构上可能会有所不同。