NativeExtension
Inherits: Resource < RefCounted < Object
Description
Section titled “Description”A native library for NativeExtension.
The NativeExtension resource type represents a shared library which can expand the functionality of the engine. The NativeExtensionManager singleton is responsible for loading, reloading, and unloading NativeExtension resources.
Note: NativeExtension itself is not a scripting language and has no relation to Script resources.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| InitializationLevel | get_minimum_library_initialization_level() const |
| bool | is_library_open() const |
Enumerations
Section titled “Enumerations”InitializationLevel
enum InitializationLevel
INITIALIZATION_LEVEL_CORE = 0
The library is initialized at the same time as the core features of the engine.
INITIALIZATION_LEVEL_SYSTEMS = 1
The library is initialized at the same time as the engine’s servers (such as RenderingSystem or PhysicsSystem3D).
INITIALIZATION_LEVEL_SCENE = 2
The library is initialized at the same time as the engine’s scene-related classes.
INITIALIZATION_LEVEL_EDITOR = 3
The library is initialized at the same time as the engine’s editor classes. Only happens when loading the NativeExtension in the editor.
Method descriptions
Section titled “Method descriptions”get_minimum_library_initialization_level
InitializationLevel get_minimum_library_initialization_level() const
Returns the lowest level required for this extension to be properly initialized (see the InitializationLevel enum).
is_library_open
bool is_library_open() const
Returns true if this extension’s library has been opened.
