GDExtension

继承: Resource < RefCounted < Object

A native library for GDExtension.

描述

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.

方法


枚举

enum InitializationLevel:

InitializationLevel INITIALIZATION_LEVEL_CORE = 0

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

InitializationLevel INITIALIZATION_LEVEL_SERVERS = 1

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

InitializationLevel INITIALIZATION_LEVEL_SCENE = 2

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

InitializationLevel INITIALIZATION_LEVEL_EDITOR = 3

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


方法说明

InitializationLevel get_minimum_library_initialization_level ( ) const1

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


bool is_library_open ( ) const1

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

2

本方法通常需要用户覆盖才能生效。

1

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。