Provides access to GDExtension functionality.
The GDExtensionManager loads, initializes, and keeps track of all available GDExtension libraries in the project.
Note: Do not worry about GDExtension unless you know what you are doing.
Returns the GDExtension at the given file path, or null if it has not been loaded or does not exist.
Returns true if the extension at the given file path has already been loaded successfully. See also get_loaded_extensions().
Loads an extension by absolute file path. The path needs to point to a valid GDExtension. Returns LOAD_STATUS_OK if successful.
Loads the extension already in address space via the given path and initialization function. The path needs to be unique and start with "libgodot://". Returns LOAD_STATUS_OK if successful.
Reloads the extension at the given file path. The path needs to point to a valid GDExtension, otherwise this method may return either LOAD_STATUS_NOT_LOADED or LOAD_STATUS_FAILED.
Note: You can only reload extensions in the editor. In release builds, this method always fails and returns LOAD_STATUS_FAILED.
Unloads an extension by file path. The path needs to point to an already loaded GDExtension, otherwise this method returns LOAD_STATUS_NOT_LOADED.
Emitted after the editor has finished loading a new extension.
Note: This signal is only emitted in editor builds.
Emitted before the editor starts unloading an extension.
Note: This signal is only emitted in editor builds.
LOAD_STATUS_OK = 0The extension has loaded successfully.
LOAD_STATUS_FAILED = 1The extension has failed to load, possibly because it does not exist or has missing dependencies.
LOAD_STATUS_ALREADY_LOADED = 2The extension has already been loaded.
LOAD_STATUS_NOT_LOADED = 3The extension has not been loaded.
LOAD_STATUS_NEEDS_RESTART = 4The extension requires the application to restart to fully load.