Class reference

GDExtension

Inherits Resource

A native library for GDExtension.

Description

The GDExtension resource type represents a shared library which can expand the functionality of the engine. The GDExtensionManager singleton is responsible for loading, reloading, and unloading GDExtension resources. Note: GDExtension itself is not a scripting language and has no relation to GDScript resources.

Methods

int get_minimum_library_initialization_level() const

Returns the lowest level required for this extension to be properly initialized (see the InitializationLevel enum).

bool is_library_open() const

Returns true if this extension's library has been opened.

Constants

INITIALIZATION_LEVEL_CORE = 0

Enum: InitializationLevel

The library is initialized at the same time as the core features of the engine.

INITIALIZATION_LEVEL_SERVERS = 1

Enum: InitializationLevel

The library is initialized at the same time as the engine's servers (such as RenderingServer or PhysicsServer3D).

INITIALIZATION_LEVEL_SCENE = 2

Enum: InitializationLevel

The library is initialized at the same time as the engine's scene-related classes.

INITIALIZATION_LEVEL_EDITOR = 3

Enum: InitializationLevel

The library is initialized at the same time as the engine's editor classes. Only happens when loading the GDExtension in the editor.

Tutorials

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.