Module godot_core::global
source · Expand description
Godot global enums, constants and utility functions.
See also Godot docs for @GlobalScope
.
§Builtin-related enums
The library ships several additional enums in places where GDScript would use magic numbers. These are co-located with
builtin types, in the godot::builtin
module. The enums are:
- Color: [
ColorChannelOrder
][crate::builtin::ColorChannelOrder] - Projection: [
ProjectionEye
][crate::builtin::ProjectionEye], [ProjectionPlane
][crate::builtin::ProjectionPlane] - Rectangle:
Side
,Corner
(godot-generated) - Rotation:
EulerOrder
(godot-generated) - Variant:
VariantType
,VariantOperator
- Vector: [
Vector2Axis
][crate::builtin::Vector2Axis], [Vector3Axis
][crate::builtin::Vector3Axis], [Vector4Axis
][crate::builtin::Vector4Axis]
Macros§
- Pushes an error message to Godot’s built-in debugger and to the OS terminal.
- Prints to the Godot console.
- Prints to the Godot console. Supports BBCode, color and URL tags.
- Logs a script error to Godot’s built-in debugger and to the OS terminal.
- Pushes a warning message to Godot’s built-in debugger and to the OS terminal.
Structs§
- Godot enum name:
MIDIMessage
.
Enums§
- This enum is exhaustive; you should not expect future Godot versions to add new enumerators.
- This enum is exhaustive; you should not expect future Godot versions to add new enumerators.