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.