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.

Что такое GDExtension?

GDExtension is a Godot-specific technology that lets the engine interact with native shared libraries at runtime. You can use it to run native code without compiling it with the engine.

Существует три основных метода достижения этой цели:

  • gdextension_interface.h: Набор функций C, которые Godot и GDExtension могут использовать для взаимодействия.

  • extension_api.json: список функций C, которые предоставляются API Godot (Core Features).

  • *.gdextension: Формат файла, считываемый Godot для загрузки GDExtension.

Большинство людей создают GDExtensions с какой-либо существующей языковой привязкой, например, godot-cpp (for C++), или с одной из community-made ones.

Совместимость версий

См. godot-cpp Version Compatibility, которая применима ко всем расширениям GDExtensions.