Module godot::prelude

source ·
Expand description

Often-imported symbols.

Re-exports§

Modules§

Macros§

  • Constructs Array literals, similar to Rust’s standard vec! macro.
  • Constructs Dictionary literals, close to Godot’s own syntax.
  • 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.
  • A macro to coerce float-literals into the real type.
  • Array of reals.
  • Access vector components in different order.
  • Constructs VariantArray literals, similar to Rust’s standard vec! macro.

Structs§

  • Axis-aligned bounding box in 3D space.
  • Godot’s Array type.
  • Godot class AudioStreamPlayer.
  • Restricted version of Gd, to hold the base instance inside a user’s GodotClass.
  • A 3x3 matrix, typically used as an orthogonal basis for Transform3D.
  • A Callable represents a function in Godot.
  • Godot class Camera2D.
  • Godot class Camera3D.
  • Color built-in type, in floating-point RGBA format.
  • HSVA floating-number Color representation.
  • Godot’s Dictionary type.
  • Open a file for reading or writing.
  • Godot’s reference counted string type.
  • Smart pointer to objects owned by the Godot engine.
  • Mutably/exclusively bound reference guard for a Gd smart pointer.
  • Immutably/shared bound reference guard for a Gd smart pointer.
  • Godot class Input.
  • Represents a non-zero instance ID.
  • Godot class Node.
  • Godot class Node2D.
  • Godot class Node3D.
  • A pre-parsed scene tree path.
  • Godot class Object.
  • Ergonomic late-initialization container with ready() support.
  • Implements Godot’s PackedByteArray type, which is an efficient array of u8s.
  • Implements Godot’s PackedColorArray type, which is an efficient array of Colors.
  • Implements Godot’s PackedFloat32Array type, which is an efficient array of f32s.
  • Implements Godot’s PackedFloat64Array type, which is an efficient array of f64s.
  • Implements Godot’s PackedInt32Array type, which is an efficient array of i32s.
  • Implements Godot’s PackedInt64Array type, which is an efficient array of i64s.
  • Godot class PackedScene.
  • Implements Godot’s PackedStringArray type, which is an efficient array of GStrings.
  • Implements Godot’s PackedVector2Array type, which is an efficient array of Vector2s.
  • Implements Godot’s PackedVector3Array type, which is an efficient array of Vector3s.
  • Implements Godot’s PackedVector4Array type, which is an efficient array of Vector4s.
  • 3D plane in Hessian normal form.
  • A 4x4 matrix used for 3D projective transformations.
  • 2D axis-aligned bounding box.
  • 2D axis-aligned integer bounding box.
  • Godot class RefCounted.
  • Godot class Resource.
  • Godot class SceneTree.
  • A Signal represents a signal of an Object instance in Godot.
  • A string optimized for unique names.
  • Affine 2D transform (2x3 matrix).
  • Affine 3D transform (3x4 matrix).
  • Godot variant type, able to store a variety of different types.
  • Vector used for 2D math using floating point coordinates.
  • Vector used for 2D math using integer coordinates.
  • Vector used for 3D math using floating point coordinates.
  • Vector used for 3D math using integer coordinates.
  • Vector used for 4D math using floating point coordinates.
  • Vector used for 4D math using integer coordinates.

Enums§

Traits§

Functions§

  • ⚠️ Loads a resource from the filesystem located at path, panicking on error.
  • Loads a resource from the filesystem located at path.

Type Aliases§

  • A Godot Array without an assigned type.
  • Floating point type used for many structs and functions in Godot.

Attribute Macros§

Derive Macros§