Skip to main content

Module init

Module init 

Source
Expand description

Entry point and global init/shutdown of the library.

Structs§

GdextBuild
Provides meta-information about the library and the Godot version in use.

Enums§

EditorRunBehavior
Determines if and how an extension’s code is run in the editor.
InitLevel
Step in the Godot initialization process.
InitStage
Extended step in the initialization process, including both init-levels and the main loop.

Traits§

ExtensionLibrary
Defines the entry point for a GDExtension Rust library.

Functions§

is_class_available
Return whether a certain class API can be used in Godot.
is_editor_hint
Returns whether the engine is running inside the Godot editor.
is_main_thread
Check if the current thread is the main thread.
is_singleton_available
Return whether a certain singleton can currently be retrieved from Godot.
main_thread_idNon-wasm_nothreads
Get the ThreadId of the main thread.

Attribute Macros§

gdextension
Proc-macro attribute to be used in combination with the ExtensionLibrary trait.