2021-06-19 17:58:49 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 10:08:05 +02:00
<class name= "GDExtension" inherits= "Resource" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2021-06-19 17:58:49 +02:00
<brief_description >
2024-01-08 15:44:06 +01:00
A native library for GDExtension.
2021-06-19 17:58:49 +02:00
</brief_description>
<description >
2024-01-08 15:44:06 +01:00
The [GDExtension] resource type represents a [url=https://en.wikipedia.org/wiki/Shared_library]shared library[/url] which can expand the functionality of the engine. The [GDExtensionManager] singleton is responsible for loading, reloading, and unloading [GDExtension] resources.
[b]Note:[/b] GDExtension itself is not a scripting language and has no relation to [GDScript] resources.
2021-06-19 17:58:49 +02:00
</description>
<tutorials >
2024-01-08 15:44:06 +01:00
<link title= "GDExtension overview" > $DOCS_URL/tutorials/scripting/gdextension/what_is_gdextension.html</link>
<link title= "GDExtension example in C++" > $DOCS_URL/tutorials/scripting/gdextension/gdextension_cpp_example.html</link>
2021-06-19 17:58:49 +02:00
</tutorials>
<methods >
<method name= "get_minimum_library_initialization_level" qualifiers= "const" >
2022-12-07 12:11:28 +01:00
<return type= "int" enum= "GDExtension.InitializationLevel" />
2021-06-19 17:58:49 +02:00
<description >
2024-01-08 15:44:06 +01:00
Returns the lowest level required for this extension to be properly initialized (see the [enum InitializationLevel] enum).
2021-06-19 17:58:49 +02:00
</description>
</method>
<method name= "is_library_open" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
2021-06-19 17:58:49 +02:00
<description >
2024-01-08 15:44:06 +01:00
Returns [code]true[/code] if this extension's library has been opened.
2021-06-19 17:58:49 +02:00
</description>
</method>
</methods>
<constants >
<constant name= "INITIALIZATION_LEVEL_CORE" value= "0" enum= "InitializationLevel" >
2024-01-08 15:44:06 +01:00
The library is initialized at the same time as the core features of the engine.
2021-06-19 17:58:49 +02:00
</constant>
<constant name= "INITIALIZATION_LEVEL_SERVERS" value= "1" enum= "InitializationLevel" >
2024-01-08 15:44:06 +01:00
The library is initialized at the same time as the engine's servers (such as [RenderingServer] or [PhysicsServer3D]).
2021-06-19 17:58:49 +02:00
</constant>
<constant name= "INITIALIZATION_LEVEL_SCENE" value= "2" enum= "InitializationLevel" >
2024-01-08 15:44:06 +01:00
The library is initialized at the same time as the engine's scene-related classes.
2021-06-19 17:58:49 +02:00
</constant>
2022-05-03 11:56:08 +02:00
<constant name= "INITIALIZATION_LEVEL_EDITOR" value= "3" enum= "InitializationLevel" >
2024-01-08 15:44:06 +01:00
The library is initialized at the same time as the engine's editor classes. Only happens when loading the GDExtension in the editor.
2021-06-19 17:58:49 +02:00
</constant>
</constants>
</class>