Crate godot_core

Source
Expand description

§Internal crate of godot-rust

Do not depend on this crate directly, instead use the godot crate. No SemVer or other guarantees are provided.

Re-exports§

pub use godot_ffi as sys;

Modules§

builder
builtin
Built-in types like Vector2, GString and Variant.
classes
Maps the Godot class API to Rust.
global
Godot global enums, constants and utility functions.
init
meta
Meta-information about Godot types, their properties and conversions between them.
obj
Types and traits related to objects.
registry
tasksince_api="4.2"
Integrates async rust code with the engine.
tools
Higher-level additions to the Godot engine API.

Macros§

array
Constructs [Array] literals, similar to Rust’s standard vec! macro.
assert_eq_approx
Asserts that two values are approximately equal
assert_ne_approx
Asserts that two values are not approximately equal, using the provided func for equality checking.
declare_arg_method
dict
Constructs [Dictionary] literals, close to Godot’s own syntax.
emit_deprecated_warning
format_backtraceDebug-assertions enabled
godot_error
Pushes an error message to Godot’s built-in debugger and to the OS terminal.
godot_print
Prints to the Godot console.
godot_print_rich
Prints to the Godot console. Supports BBCode, color and URL tags.
godot_script_error
Logs a script error to Godot’s built-in debugger and to the OS terminal.
godot_str
Concatenates format-style arguments into a GString.
godot_warn
Pushes a warning message to Godot’s built-in debugger and to the OS terminal.
impl_asarg_by_ref
impl_asarg_by_value
impl_dynamic_sendsince_api="4.2"
impl_godot_as_self
impl_shared_string_api
implement_godot_bounds
Implements Bounds for a user-defined class.
inherit_from_ArrayMesh__ensure_class_exists
Safety
inherit_from_CanvasItem__ensure_class_exists
inherit_from_ClassDb__ensure_class_exists
inherit_from_EditorExportPlugin__ensure_class_exists
Safety
inherit_from_EditorPlugin__ensure_class_exists
Safety
inherit_from_Engine__ensure_class_exists
inherit_from_FileAccess__ensure_class_exists
inherit_from_GDScript__ensure_class_exists
Safety
inherit_from_HttpRequest__ensure_class_exists
Safety
inherit_from_InputEventAction__ensure_class_exists
Safety
inherit_from_InputEvent__ensure_class_exists
inherit_from_Input__ensure_class_exists
inherit_from_MainLoop__ensure_class_exists
Safety
inherit_from_Mesh__ensure_class_exists
Safety
inherit_from_Node2D__ensure_class_exists
Safety
inherit_from_Node3D__ensure_class_exists
Safety
inherit_from_Node__ensure_class_exists
Safety
inherit_from_Object__ensure_class_exists
Safety
inherit_from_Os__ensure_class_exists
inherit_from_PackedScene__ensure_class_exists
Safety
inherit_from_PrimitiveMesh__ensure_class_exists
Safety
inherit_from_RefCounted__ensure_class_exists
Safety
inherit_from_RenderingServer__ensure_class_exists
inherit_from_ResourceFormatLoader__ensure_class_exists
Safety
inherit_from_ResourceLoader__ensure_class_exists
inherit_from_ResourceSaver__ensure_class_exists
inherit_from_Resource__ensure_class_exists
Safety
inherit_from_SceneTree__ensure_class_exists
Safety
inherit_from_ScriptExtension__ensure_class_exists
Safety
inherit_from_ScriptLanguageExtension__ensure_class_exists
Safety
inherit_from_ScriptLanguage__ensure_class_exists
inherit_from_Script__ensure_class_exists
inherit_from_Texture__ensure_class_exists
Safety
inherit_from_Time__ensure_class_exists
inherit_from_Viewport__ensure_class_exists
inherit_from_Window__ensure_class_exists
Safety
real
A macro to coerce float-literals into the [real] type.
reals
Array of [real]s.
swizzle
Access vector components in different order.
tr
A convenience macro for using the Object::tr() and Object::tr_ex() methods.
tr_n
A convenience macro for using the Object::tr_n() and Object::tr_n_ex() methods.
varray
Constructs [VariantArray] literals, similar to Rust’s standard vec! macro.

Functions§

get_gdext_panic_context
set_gdext_hook